Function at 0x4c0300
Capabilities:
Check for time delay via queryperformancecounter
Connect socket
Get socket status
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x578
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0x58]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x20], eax
cmp ecx, 0x3b9aca00
jne 0x4c0350
mov edi, dword [edx + 0x48]
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], ecx
jmp 0x4c04b4
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
lea edi, [esp + 0xd0]
mov dword [esp + 0x40], ecx
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0x70], edx
mov dword [esp + 8], eax
push edi
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4c2378
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
movq xmm0, qword [0x6019d0]
movd esi, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 4], ecx
movd edx, xmm0
mov eax, esi
or eax, edx
jne 0x4c040d
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
push edi
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4c2378
movq xmm0, qword [esp + 0xd0]
mov esi, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
movq qword [0x6019d0], xmm0
mov eax, esi
mov ecx, dword [esp + 4]
or eax, edx
je 0x4c2376
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esp], edx
push edx
push esi
push ecx
push ebx
call fcn.004ee5e0
mov edi, edx
mov ecx, eax
mul esi
imul ebx, edi, 0x3b9aca00
imul edi, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0x3b9aca00
add edi, edx
mov edx, ecx
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 4]
imul edx, dword [esp]
add edi, edx
sub esi, eax
mov edx, 0x3b9aca00
mov eax, ecx
sbb ebx, edi
mul edx
mov edi, edx
mov dword [esp + 4], eax
mov eax, esi
mov edx, 0x3b9aca00
imul ecx, ebx, 0x3b9aca00
add edi, dword [esp + 0xc]
mul edx
add edx, ecx
push dword [esp]
push dword [esp + 0x14]
push edx
push eax
call fcn.004ee5e0
mov esi, eax
add esi, dword [esp + 4]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004ee5e0
mov edi, dword [esp + 0x70]
mov ecx, eax
mov dword [esp + 0x48], edx
add ecx, edi
mov ecx, edx
mov edx, dword [esp + 8]
adc ecx, edx
jae 0x4c0571
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x70], edi
cmp eax, dword [ecx + 0x5c]
jno 0x4c053f
lea eax, [esp + 0x7c]
lea edx, [ebp + 0x10]
lea ecx, [esp + 0x1f8]
mov dword [esp + 0xd0], 0x5e44ec
mov dword [esp + 0xd4], 2
mov dword [esp + 0xe0], 0
mov dword [esp + 0x84], 0x80000000
lea esi, [esp + 0x44c]
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1fc], 0x489eb0
mov dword [esp + 0x200], edx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x204], 0x413fc0
mov dword [esp + 0xdc], 2
jmp 0x4c0759
mov esi, dword [ecx + 0x64]
mov eax, ecx
test esi, esi
js 0x4c2376
mov ecx, dword [eax + 0x60]
je 0x4c05b3
mov dword [esp], ecx
xor ecx, ecx
mov edx, esi
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x4c2376
mov ecx, dword [esp]
jmp 0x4c05b8
imul ecx, eax, 0x3b9aca00
sub esi, ecx
mov ecx, dword [esp + 0x40]
add edi, eax
adc dword [esp + 0x48], edx
add ecx, esi
cmp ecx, 0x3b9aca00
jb 0x4c0347
mov eax, edi
and eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x4c04b4
add ecx, 0xc4653600
add edi, 1
adc dword [esp + 0x48], 0
jmp 0x4c0347
mov eax, 1
mov dword [esp], esi
push esi
push ecx
mov dword [esp + 0xc], eax
push eax
call fcn.004ef180
add esp, 0xc
mov eax, dword [esp + 0x20]
xor edx, edx
mov ebx, 0x80000000
mov ecx, dword [eax + 0x80]
cmp edx, dword [eax + 0x68]
mov dword [esp + 8], ecx
jno 0x4c05f3
mov edi, 0x80000000
cmp edx, dword [eax + 0x74]
jno 0x4c063b
jmp 0x4c0683
mov edi, dword [eax + 0x70]
test edi, edi
js 0x4c2376
mov esi, dword [eax + 0x6c]
je 0x4c061c
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, edi
call fcn.00499510
test eax, eax
jne 0x4c0621
jmp 0x4c2376
mov eax, 1
push edi
push esi
mov dword [esp + 0x18], eax
push eax
call fcn.004ef180
add esp, 0xc
mov eax, dword [esp + 0x20]
xor edx, edx
cmp edx, dword [eax + 0x74]
jo 0x4c05ee
mov ebx, dword [eax + 0x7c]
test ebx, ebx
js 0x4c2376
mov eax, dword [eax + 0x78]
je 0x4c066f
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x4c2376
mov esi, eax
mov eax, dword [esp + 0xc]
jmp 0x4c0674
mov esi, 1
push ebx
push eax
push esi
call fcn.004ef180
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
movzx eax, byte [eax + 0x84]
mov dword [esp + 0xd0], 0x5e44ec
mov dword [esp + 0xd4], 2
mov dword [esp + 0xe0], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], edx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 8]
mov dword [esp + 0xa4], ebx
lea edx, [esp + 0x84]
mov dword [esp + 0x1f8], edx
lea edx, [esp + 0x1f8]
mov dword [esp + 0x1fc], 0x40c140
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], 2
mov dword [esp + 0xa8], esi
lea esi, [esp + 0xa8]
mov byte [esp + 0xac], al
mov dword [esp + 0x200], esi
lea esi, [esp + 0x440]
mov dword [esp + 0x204], 0x4140a0
lea edx, [esp + 0xd0]
mov ecx, esi
call fcn.0040c360
mov eax, dword [esi + 8]
movq xmm0, qword [esi]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x38]
movq qword [esp + 0xb0], xmm0
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax + 8]
lock inc dword [ecx]
jle 0x4c2376
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 8]
lea ecx, [esp + 0x3c0]
mov eax, dword [esi + 8]
dec eax
and eax, 0xfffffff8
lea eax, [edi + eax + 8]
push dword [esp + 0xb8]
push dword [esp + 0xb8]
push eax
push ecx
call dword [esi + 0xc]
add esp, 0x10
mov eax, dword [esp + 0x3c0]
mov dword [esp + 0x44], eax
neg eax
jno 0x4c08e7
movq xmm0, qword [esp + 0x3c4]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x1f8]
mov dword [esp + str.resolve_dns_name_], 0x5e4bb4
mov dword [esp + 0x1fc], 2
mov dword [esp + 0x208], 0
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 0x40c140
mov dword [esp + 0x200], eax
mov dword [esp + 0x204], 1
movq qword [esp + 0x24], xmm0
call fcn.0040c360
lea eax, [esp + 0x24]
mov dword [esp + 0xd4], 2
mov dword [esp + 0x128], 0
mov byte [esp + 0x130], 2
mov dword [esp + 0xd0], 2
lea ecx, [esp + 0x1f8]
lea edx, [esp + 0xd0]
push eax
call fcn.004a4a20
add esp, 4
mov eax, dword [esp + 0x1fc]
mov ebx, dword [esp + 0x1f8]
lea ecx, [esp + 0x300]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x200]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x204]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x208]
push 0xb4
push eax
push ecx
call fcn.004ef180
add esp, 0xc
cmp ebx, 3
mov dword [esp], ebx
jne 0x4c137f
mov ebx, dword [esp + 0x4c]
lock dec dword [edi]
je 0x4c08fe
jmp 0x4c0907
mov eax, dword [esp + 0x3c4]
mov ebx, dword [esp + 0x3c8]
mov dword [esp + 0x3c], eax
lock dec dword [edi]
jne 0x4c0907
mov ecx, edi
mov edx, esi
call fcn.004a9b80
test ebx, ebx
je 0x4c12f0
xor eax, eax
mov dword [esp + 4], 4
cmp eax, dword [esp + 0x84]
mov eax, 4
jo 0x4c092e
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ebx
shl ebx, 5
mov dword [esp + 0x1e8], eax
movzx eax, al
mov dword [esp + 0x78], eax
add ebx, ecx
mov esi, ecx
mov dword [esp + 0x74], ebx
jmp 0x4c0975
add esi, 0x20
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
cmp esi, dword [esp + 0x74]
je 0x4c13d5
movzx eax, word [esi]
mov word [esp + 0x32], 2
cmp eax, 2
je 0x4c13cd
mov dword [esp + 0x10], eax
movzx eax, word [esi + 0xa]
cmp dword [esp + 0x1c], 0x3b9aca00
mov edi, 0x3b9aca00
mov dword [esp], esi
mov word [esp + 0x68], ax
movq xmm0, qword [esi + 2]
movq qword [esp + 0x60], xmm0
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x40], eax
movzx eax, word [esi + 0x1c]
mov word [esp + 0x34], ax
movzx eax, word [esi + 0x1e]
mov word [esp + 0x36], ax
je 0x4c0b8a
mov eax, dword [esp + 0x48]
mov dword [esp + 0x304], 0
mov dword [esp + 0x300], 0
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd8], eax
lea eax, [esp + 0x300]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4c2378
mov esi, dword [esp + 0x300]
mov edi, dword [esp + 0x304]
movq xmm0, qword [0x6019d0]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4c0aaf
lea eax, [esp + 0x300]
mov dword [esp + 0x304], 0
mov dword [esp + 0x300], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4c2378
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0x6019d0], xmm0
or eax, ecx
je 0x4c2376
mov dword [esp + 0xc], ecx
push ecx
push edx
push edi
push esi
mov ebx, edx
mov dword [esp + 0x3c], edx
call fcn.004ee5e0
mov dword [esp + 0x18], edi
mov edi, edx
mov ecx, eax
mov dword [esp + 0x1ec], esi
mul ebx
imul esi, edi, 0x3b9aca00
imul edi, ebx
mov ebx, dword [esp + 0x18]
add edi, edx
mov edx, ecx
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x1ec]
imul edx, dword [esp + 0xc]
add edi, edx
sub esi, eax
mov eax, ecx
mov ecx, 0x3b9aca00
sbb ebx, edi
mul ecx
mov edi, edx
mov dword [esp + 0x18], eax
mov eax, esi
mov edx, 0x3b9aca00
imul ecx, ebx, 0x3b9aca00
add edi, dword [esp + 0x50]
mul edx
add edx, ecx
push dword [esp + 0xc]
push dword [esp + 0x30]
push edx
push eax
call fcn.004ee5e0
mov esi, eax
add esi, dword [esp + 0x18]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004ee5e0
imul ecx, eax, 0x3b9aca00
mov edi, edx
mov edx, eax
sub esi, ecx
lea ecx, [esp + 0xd0]
push esi
push edi
call fcn.0048a000
add esp, 8
cmp ecx, 0x3b9aca00
je 0x4c1739
cmp dword [esp + 0x4c], 1
mov esi, edx
mov edi, ecx
je 0x4c0b8a
shr edi, 1
test al, 1
lea ecx, [edi + 0x1dcd6500]
cmovne edi, ecx
shrd eax, esi, 1
shr esi, 1
test byte [esp + 0x78], 0xfb
jne 0x4c0c10
cmp edi, 0x3b9aca00
jne 0x4c0c60
mov edx, dword [esp + 0x10]
cmp edx, 2
je 0x4c0d80
movd xmm0, dword [esp + 0x60]
movzx ecx, word [esp + 0x64]
mov eax, dword [esp + 0x66]
cmp edx, 3
jne 0x4c0d8a
pextrw edx, xmm0, 1
mov word [esp + 0xd0], dx
mov word [esp + 0xd2], cx
lea ecx, [esp + 0x3c0]
lea edx, [esp + 0xd0]
mov dword [esp + 0xd4], eax
call fcn.00499780
cmp byte [esp + 0x3c0], 4
mov esi, dword [esp]
jne 0x4c0f8b
mov eax, dword [esp + 0x3c4]
jmp 0x4c0e34
xor eax, eax
cmp eax, dword [esp + 0x84]
jo 0x4c2376
mov esi, dword [esp + 0x8c]
test esi, esi
js 0x4c2376
mov edi, dword [esp + 0x88]
je 0x4c0d12
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, esi
call fcn.00499510
test eax, eax
jne 0x4c0d17
jmp 0x4c2376
mov dword [esp + 0x2c], eax
mov eax, dword [0x6019c0]
cmp eax, 3
jne 0x4c117f
mov edx, dword [esp + 0x10]
lea ebx, [esp + 0xd0]
mov ecx, ebx
call fcn.0048f930
movzx ecx, byte [esp + 0xd0]
cmp cl, 4
jne 0x4c0cee
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xd0], 1
push ebx
push 0x8004667e
mov dword [esp + 0x14], eax
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4c1066
test byte [esp + 0x10], 1
je 0x4c0fb1
mov eax, dword [esp + 0x62]
mov ebx, dword [esp + 0x66]
movzx edx, word [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], 0x1c
mov dword [esp + 0x50], eax
mov ax, 0x17
jmp 0x4c0fd0
movzx eax, byte [esp + 0xd3]
movzx ebx, word [esp + 0xd1]
mov edi, dword [esp + 0xd4]
mov esi, dword [esp]
shl eax, 0x10
or ebx, eax
jmp 0x4c1093
mov eax, 1
push esi
push edi
mov dword [esp + 0x14], eax
push eax
call fcn.004ef180
add esp, 0xc
xor eax, eax
mov ebx, 0x80000000
mov edi, 0x80000000
cmp eax, dword [esp + 0x90]
jo 0x4c0e61
mov edi, dword [esp + 0x98]
test edi, edi
js 0x4c2376
mov ecx, dword [esp + 0x94]
je 0x4c0e4d
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov edx, edi
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x4c2376
mov ecx, dword [esp + 0x2c]
jmp 0x4c0e52
mov ecx, 4
jmp 0x4c0f4e
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov word [esp + 0xd0], dx
movd dword [esp + 0xd2], xmm0
mov word [esp + 0xd6], cx
mov dword [esp + 0xd8], eax
movzx ecx, word [esp + 0x34]
movzx edx, word [esp + 0x36]
mov dword [esp + 0x1f8], 4
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], esi
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x40]
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], esi
mov word [esp + 0xec], cx
lea ecx, [esp + 0xd0]
mov word [esp + 0xee], dx
lea edx, [esp + 0x1f8]
mov dword [esp + 0x1fc], ecx
lea ecx, [esp + 0x300]
call fcn.00499780
cmp byte [esp + 0x300], 4
mov eax, dword [esp + 0x304]
jne 0x4c0f47
mov esi, dword [esp]
mov dword [esp + 0x28], eax
mov byte [esp + 0x24], 4
cmp byte [esp + 0x24], 4
jne 0x4c10ae
jmp 0x4c1666
mov eax, 1
push edi
push ecx
mov dword [esp + 0x34], eax
push eax
call fcn.004ef180
add esp, 0xc
xor eax, eax
cmp eax, dword [esp + 0x9c]
jo 0x4c0eba
mov ebx, dword [esp + 0xa4]
test ebx, ebx
js 0x4c2376
mov ecx, dword [esp + 0xa0]
je 0x4c0ea6
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x4c2376
mov ecx, dword [esp + 0x18]
jmp 0x4c0eab
mov eax, 1
push ebx
push ecx
mov dword [esp + 0x20], eax
push eax
call fcn.004ef180
add esp, 0xc
lea ecx, [esp + 0x24]
mov edx, 0x27
push 0x17
push str.SOCKS_feature_disabled.unknown_scheme_
call fcn.004a94a0
add esp, 8
test esi, esi
je 0x4c0ee8
push dword [esp + 0xc]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [esp]
test edi, 0x7fffffff
jne 0x4c0f0b
test ebx, 0x7fffffff
jne 0x4c0f25
cmp byte [esp + 0x24], 4
jne 0x4c10ae
jmp 0x4c1666
push dword [esp + 0x2c]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
test ebx, 0x7fffffff
je 0x4c0efb
push dword [esp + 0x18]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp byte [esp + 0x24], 4
jne 0x4c10ae
jmp 0x4c1666
mov ecx, dword [esp + 0x300]
mov edx, ecx
mov ebx, ecx
mov esi, 2
shr edx, 8
cmp cl, 4
cmove ebx, esi
mov esi, 0x5df1d4
cmove eax, esi
mov esi, dword [esp]
shr ecx, 0x18
mov byte [esp + 0x3c0], bl
mov word [esp + 0x3c1], dx
mov byte [esp + 0x3c3], cl
mov dword [esp + 0x3c4], eax
mov eax, dword [esp + 0x3c0]
mov ecx, dword [esp + 0x3c4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
cmp byte [esp + 0x24], 4
jne 0x4c10ae
jmp 0x4c1666
movzx edx, word [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x50], 0
mov dword [esp + 0x18], 0x10
mov ax, 2
xor ebx, ebx
mov word [esp + 0xd0], ax
mov eax, dword [esp + 0x50]
rol dx, 8
mov word [esp + 0xd2], dx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xe8], eax
push dword [esp + 0x18]
lea ebx, [esp + 0xd4]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4c1126
lea eax, [esp + 0xd0]
mov dword [esp + 0xd0], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4c166e
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ebx, ebx
xor ecx, ecx
mov esi, dword [esp]
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
push edi
mov edi, eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xbc], edi
mov dword [esp + 0x6c], ebx
shl ebx, 8
movzx eax, cl
mov dword [esp + 0x28], edi
or eax, ebx
mov dword [esp + 0x24], eax
cmp byte [esp + 0x24], 4
je 0x4c1666
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp byte [esp + 4], 3
jne 0x4c1111
mov eax, dword [esp + 8]
mov dword [esp + 4], ebx
mov ebx, edi
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x4c10d8
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4c10f6
cmp dword [edi + 8], 9
jb 0x4c10e7
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esp + 8]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, ebx
mov ebx, dword [esp + 4]
mov esi, dword [esp]
cmp bl, 4
jne 0x4c0960
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4c0960
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0xd0], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4c1066
mov ecx, dword [esp + 0x18]
call fcn.0048bd60
xor ebx, ebx
cmp al, 0xd
jne 0x4c1189
mov ecx, dword [esp + 0x2c]
mov eax, ecx
or eax, esi
or eax, edi
jne 0x4c119b
mov eax, 0x5bbff8
mov cl, 2
jmp 0x4c1070
call fcn.004ff520
jmp 0x4c0c72
mov esi, dword [esp]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
xor ecx, ecx
jmp 0x4c1077
cmp ecx, 0x7fffffff
mov eax, 0x7fffffff
cmovae ecx, eax
test esi, esi
cmovne ecx, eax
mov eax, edi
mov esi, ecx
mov ecx, 0x10624dd3
mul ecx
mov ecx, 1
mov dword [esp + 0x3c0], esi
shr edx, 6
test esi, esi
mov eax, edx
cmove eax, ecx
cmp edi, 0x3e8
cmovae eax, edx
mov dword [esp + 0x3c4], eax
push 0xfc
push 0
lea eax, [esp + 0xe0]
push eax
call fcn.004f0d80
add esp, 0xc
mov edi, dword [esp + 0xc]
mov dword [esp + 0x1f8], 1
mov dword [esp + 0x1fc], edi
push 0xfc
push 0
lea eax, [esp + 0x208]
push eax
call fcn.004f0d80
add esp, 0xc
lea eax, [esp + 0x3c0]
mov dword [esp + 0xd0], 1
mov dword [esp + 0xd4], edi
push eax
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x200]
push eax
push 0
push 1
call dword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x4c1275
mov esi, dword [esp]
cmp eax, 0xffffffff
jne 0x4c1281
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 0x6c], 0
jmp 0x4c12dc
mov esi, dword [esp]
mov cl, 2
mov eax, 0x5bc024
jmp 0x4c12de
cmp dword [esp + 0x1f8], 1
mov cl, 4
jne 0x4c1296
mov eax, dword [esp + 0xbc]
jmp 0x4c12de
lea ecx, [esp + 0x300]
mov edx, edi
call fcn.0048f9e0
test byte [esp + 0x300], 1
je 0x4c12b7
mov ebx, dword [esp + 0x304]
jmp 0x4c12cc
mov ebx, dword [esp + 0x304]
mov eax, dword [esp + 0xbc]
mov cl, 4
cmp bl, 4
je 0x4c12de
mov eax, dword [esp + 0x308]
mov ecx, ebx
shr ecx, 8
mov dword [esp + 0x6c], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x6c]
cmp cl, 4
jne 0x4c1077
jmp 0x4c166e
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
lea edx, [esp + 0xd0]
mov dword [esp + 0xd0], 0x5e4b98
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x1f8], eax
lea eax, [esp + 0x1f8]
mov dword [esp + 0x1fc], 0x489eb0
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 1
lea ecx, [esi + 0x4c]
call fcn.0040c360
cmp dword [esp + 0x44], 0
mov dword [esi], 2
mov dword [esi + 4], 2
mov dword [esi + 0x58], 0
mov byte [esi + 0x60], 2
je 0x4c1f2c
push dword [esp + 0x3c]
jmp 0x4c1f1e
mov ebx, dword [esp + 0x14]
lea eax, [ebx + 0x10]
push 0xb4
lea ecx, [esp + 0x304]
push ecx
push eax
call fcn.004ef180
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
lock dec dword [edi]
jne 0x4c1f2c
mov ecx, edi
mov edx, esi
call fcn.004a9b80
jmp 0x4c1f2c
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp dword [esp + 0x44], 0
je 0x4c13ee
push dword [esp + 0x3c]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp word [esp + 0x32], 2
jne 0x4c14aa
cmp bl, 4
je 0x4c2376
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], edi
xor ecx, ecx
mov edx, 0xd
movzx eax, byte [0x6019e5]
call fcn.00499510
test eax, eax
je 0x4c2376
mov ecx, dword [esp + 0x14]
mov byte [eax + 0xc], 0x72
mov dword [eax + 8], 0x6f727265
mov dword [eax + 4], 0x20746365
mov dword [eax], 0x6e6e6f43
mov dword [esp + 0xd4], 2
mov dword [esp + 0x11c], 0xd
mov dword [esp + 0x120], eax
lea eax, [esp + 0x1f0]
mov dword [esp + 0x124], 0xd
mov dword [esp + 0x128], 0
mov byte [esp + 0x130], 4
mov dword [esp + 0xd0], 2
lea edx, [esp + 0xd0]
push eax
call fcn.004a4a20
add esp, 4
jmp 0x4c1f2c
movzx eax, word [esp + 0xc8]
movq xmm0, qword [esp + 0xc0]
mov ecx, dword [esp + 0xc]
mov word [esp + 0x1e0], ax
mov eax, dword [esp + 0x20]
movq qword [esp + 0x1d8], xmm0
mov dword [esp + 0x24], ecx
movzx eax, byte [eax + 0x8d]
mov dword [esp + 0xd0], eax
push 4
lea eax, [esp + 0xd4]
push eax
push 1
push 6
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4c16ab
mov eax, dword [esp + 0x38]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov ecx, dword [eax + 0x50]
cmp ecx, 0x3b9aca00
jne 0x4c1849
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x20]
cmp ecx, 0x3b9aca00
je 0x4c1586
mov eax, dword [esp + 0x20]
mov edi, 0x3e8
mov dword [esp + 8], edx
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mul edi
mov ebx, eax
mov eax, esi
seto byte [esp + 0x10]
mul edi
mov edi, edx
mov esi, eax
add edi, ebx
mov ebx, 0xffffffff
setb al
or al, byte [esp + 0x10]
jne 0x4c1582
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4c1c45
mov edx, dword [esp + 8]
mov dword [esp + 0xd0], ebx
push 4
lea eax, [esp + 0xd4]
push eax
push 0x1006
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4c1b41
mov bl, 4
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
jne 0x4c1b57
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x30]
cmp ecx, 0x3b9aca00
je 0x4c1629
mov eax, dword [esp + 0x20]
mov edi, 0x3e8
mov dword [esp + 8], edx
mov esi, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mul edi
mov ebx, eax
mov eax, esi
seto byte [esp + 0x10]
mul edi
mov edi, edx
mov esi, eax
add edi, ebx
mov ebx, 0xffffffff
setb al
or al, byte [esp + 0x10]
jne 0x4c1625
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4c1e09
mov edx, dword [esp + 8]
mov dword [esp + 0xd0], ebx
push 4
lea eax, [esp + 0xd4]
push eax
push 0x1005
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4c1bcb
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4c1d2d
jmp 0x4c1e62
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
movzx eax, word [esp + 0x68]
movq xmm0, qword [esp + 0x60]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov word [esp + 0xc8], ax
mov eax, dword [esp + 0x10]
movq qword [esp + 0xc0], xmm0
mov word [esp + 0x32], ax
cmp dword [esp + 0x44], 0
jne 0x4c13dc
jmp 0x4c13ee
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x1fb], 0
mov word [esp + 0x1f9], 0
mov dword [esp + 0x1fc], eax
lea eax, [esp + 0x1f8]
mov dword [esp + 0xd4], 2
mov dword [esp + 0x11c], 0x80000000
mov dword [esp + 0x128], 0
mov byte [esp + 0x130], 8
mov byte [esp + 0x1f8], 0
mov dword [esp + 0xd0], 2
lea edx, [esp + 0xd0]
push eax
call fcn.004a4a20
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4c1f2c
jmp 0x4c1ee7
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, 0x1a
call fcn.00499510
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
test eax, eax
je 0x4c2376
lea esi, [esp + 0x1f8]
mov word [eax + 0x18], 0x6573
mov dword [eax + 0x14], 0x6e6f7073
mov dword [eax + 0x10], 0x65722067
mov dword [eax + 0xc], 0x6e696461
mov dword [eax + 8], 0x65722074
mov dword [eax + 4], 0x756f2064
mov dword [eax], 0x656d6974
mov dword [esp + 0x300], 0x1a
mov dword [esp + 0x304], eax
lea eax, [esp + 0x300]
mov dword [esp + 0x308], 0x1a
mov edx, 0x16
mov ecx, esi
push eax
call fcn.004b8100
add esp, 4
movsd xmm0, qword [esp + 0x1f8]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xd4], 2
mov dword [esp + 0x11c], 0x80000000
mov dword [esp + 0x128], 0
mov byte [esp + 0x130], 8
mov dword [esp + 0xd0], 2
lea edx, [esp + 0xd0]
movsd qword [esp + 0x1f8], xmm0
push esi
call fcn.004a4a20
add esp, 4
test ebx, ebx
je 0x4c1833
push edi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp bl, 4
jne 0x4c1ee7
jmp 0x4c1f2c
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x304], 0
mov dword [esp + 0x300], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0xd4], eax
lea eax, [esp + 0x300]
mov dword [esp + 0xd0], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0xd8], ecx
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4c2378
mov edi, dword [esp + 0x300]
mov esi, dword [esp + 0x304]
movq xmm0, qword [0x6019d0]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4c191a
lea eax, [esp + 0x300]
mov dword [esp + 0x304], 0
mov dword [esp + 0x300], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4c2378
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0x6019d0], xmm0
or eax, ecx
je 0x4c2376
mov dword [esp + 8], ecx
push ecx
push edx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x20], edx
call fcn.004ee5e0
mov dword [esp + 0x1c], esi
mov esi, edx
mov ecx, eax
mov dword [esp + 0x78], edi
mul ebx
imul edi, esi, 0x3b9aca00
imul esi, ebx
mov ebx, dword [esp + 0x78]
add esi, edx
mov edx, ecx
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x1c]
imul edx, dword [esp + 8]
add esi, edx
sub ebx, eax
mov edx, 0x3b9aca00
mov eax, ecx
sbb edi, esi
mul edx
mov esi, edx
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, 0x3b9aca00
imul ecx, edi, 0x3b9aca00
add esi, dword [esp + 0xc]
mul edx
add edx, ecx
push dword [esp + 8]
push dword [esp + 0x14]
push edx
push eax
call fcn.004ee5e0
mov edi, eax
add edi, dword [esp + 0x1c]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push edi
call fcn.004ee5e0
imul ecx, eax, 0x3b9aca00
mov esi, edx
mov edx, eax
sub edi, ecx
lea ecx, [esp + 0xd0]
push edi
push esi
call fcn.0048a000
add esp, 8
cmp ecx, 0x3b9aca00
jne 0x4c1aad
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, 0x1a
call fcn.00499510
test eax, eax
je 0x4c2376
lea esi, [esp + 0x1f8]
mov word [eax + 0x18], 0x6573
mov dword [eax + 0x14], 0x6e6f7073
mov dword [eax + 0x10], 0x65722067
mov dword [eax + 0xc], 0x6e696461
mov dword [eax + 8], 0x65722074
mov dword [eax + 4], 0x756f2064
mov dword [eax], 0x656d6974
mov dword [esp + 0x300], 0x1a
mov dword [esp + 0x304], eax
mov edx, 0x16
lea eax, [esp + 0x300]
mov dword [esp + 0x308], 0x1a
mov ecx, esi
push eax
call fcn.004b8100
add esp, 4
movq xmm0, qword [esp + 0x1f8]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd0]
mov dword [esp + 0xd4], 2
mov dword [esp + 0x11c], 0x80000000
mov dword [esp + 0x128], 0
mov byte [esp + 0x130], 8
mov dword [esp + 0xd0], 2
movq qword [esp + 0x1f8], xmm0
push esi
jmp 0x4c1ec9
mov esi, dword [esp + 0x24]
mov edi, 0x3e8
mov dword [esp + 8], esi
mov esi, eax
mov eax, edx
mul edi
mov edx, 0x3e8
mov edi, eax
mov eax, esi
seto bl
mul edx
mov esi, edx
mov dword [esp + 0x10], eax
add esi, edi
mov edi, 0xffffffff
setb al
or al, bl
jne 0x4c1b01
mov ebx, dword [esp + 0x10]
mov edx, 0x431bde83
mov eax, ecx
mul edx
shr edx, 0x12
mov eax, ebx
add eax, edx
mov eax, esi
adc eax, 0
jae 0x4c1ca6
lea edx, [esp + 0xd0]
mov dword [esp + 0xd0], edi
push 4
push edx
push 0x1006
push 0xffff
push dword [esp + 0x18]
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4c1be3
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4c1bf6
jmp 0x4c1e62
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
je 0x4c15c1
mov word [esp + 0x1f9], cx
shr ecx, 0x10
mov dword [esp + 0xd4], 2
mov dword [esp + 0x11c], 0x80000000
mov dword [esp + 0x128], 0
mov byte [esp + 0x130], 8
mov dword [esp + 0xd0], 2
lea edx, [esp + 0xd0]
mov byte [esp + 0x1fb], cl
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1fc], eax
lea eax, [esp + 0x1f8]
mov byte [esp + 0x1f8], bl
push eax
call fcn.004a4a20
add esp, 4
jmp 0x4c1ed4
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4c1e62
jmp 0x4c1d2d
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4c1e62
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xd0]
push dword [esp + 0x74]
push dword [esp + 0x30]
call fcn.004c2ec0
add esp, 8
mov edi, dword [esp + 0xd8]
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0xd4]
cmp edi, 0x3b9aca00
jne 0x4c1d07
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1fc], esi
jmp 0x4c1e82
imul eax, edx, 0xf4240
sub ecx, eax
add esi, edx
mov edx, dword [esp + 8]
adc edi, 0
xor eax, eax
test ecx, ecx
setne al
add eax, esi
mov eax, edi
adc eax, 0
jb 0x4c1586
xor eax, eax
test ecx, ecx
setne al
add esi, eax
adc edi, 0
xor ebx, ebx
neg edi
sbb ebx, ebx
or ebx, esi
jne 0x4c1586
mov ebx, dword [0x5bc008]
mov eax, dword [0x5bc00c]
mov edi, dword [esp]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4c15c1
jmp 0x4c1b57
imul eax, edx, 0xf4240
sub ecx, eax
add ebx, edx
lea edx, [esp + 0xd0]
adc esi, 0
xor eax, eax
test ecx, ecx
setne al
add eax, ebx
mov eax, esi
adc eax, 0
jb 0x4c1b08
xor eax, eax
test ecx, ecx
setne al
add ebx, eax
adc esi, 0
xor edi, edi
neg esi
sbb edi, edi
or edi, ebx
jne 0x4c1b08
mov ebx, dword [0x5bc008]
mov eax, dword [0x5bc00c]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4c1bf6
jmp 0x4c1e62
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x300]
push edi
push esi
push eax
call fcn.0048fc40
add esp, 0xc
movzx eax, byte [esp + 0x300]
cmp al, 4
jne 0x4c1fd5
cmp byte [esp + 0x1e8], 0
mov ecx, dword [esp + 4]
je 0x4c1dd9
movzx eax, word [esp + 0x1e0]
mov edx, dword [esp + 0x14]
movq xmm0, qword [esp + 0x1d8]
movzx esi, word [esp + 0x34]
movzx ebx, word [esp + 0x36]
mov edi, dword [esp + 0x24]
mov word [edx + 0x12], ax
mov eax, dword [esp + 0x5c]
movq qword [edx + 0xa], xmm0
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 0x20], eax
mov word [edx + 0x24], si
movzx esi, word [esp + 0x32]
mov word [edx + 0x26], bx
mov dword [edx + 4], edi
mov word [edx + 8], si
mov dword [edx], 3
mov edx, dword [esp]
call fcn.004c30b0
cmp dword [esp + 0xb0], 0
je 0x4c1dc8
push dword [esp + 0xb4]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [esp + 0x84]
call fcn.004ab7d0
jmp 0x4c1f72
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4c1d3f
mov edx, dword [esp + 0x38]
mov edi, dword [edx + 0x18]
mov esi, dword [edx + 0x14]
cmp eax, edi
jae 0x4c1ffd
cmp byte [esi + eax], 0xbf
jg 0x4c2003
jmp 0x4c2376
imul eax, edx, 0xf4240
sub ecx, eax
add esi, edx
mov edx, dword [esp + 8]
adc edi, 0
xor eax, eax
test ecx, ecx
setne al
add eax, esi
mov eax, edi
adc eax, 0
jb 0x4c1629
xor eax, eax
test ecx, ecx
setne al
add esi, eax
adc edi, 0
xor ebx, ebx
neg edi
sbb ebx, ebx
or ebx, esi
jne 0x4c1629
mov ebx, dword [0x5bc008]
mov eax, dword [0x5bc00c]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4c1d2d
mov word [esp + 0x1f9], cx
shr ecx, 0x10
mov byte [esp + 0x1fb], cl
mov dword [esp + 0x1fc], eax
mov byte [esp + 0x1f8], bl
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd0]
lea eax, [esp + 0x1f8]
mov dword [esp + 0xd4], 2
mov dword [esp + 0x11c], 0x80000000
mov dword [esp + 0x128], 0
mov byte [esp + 0x130], 8
mov dword [esp + 0xd0], 2
push eax
call fcn.004a4a20
add esp, 4
mov edi, dword [esp]
mov ebx, dword [esp + 4]
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4c1f2c
cmp bl, 3
jne 0x4c1f2c
mov esi, dword [edi]
mov ebx, edi
mov edi, dword [edi + 4]
mov eax, dword [edi]
test eax, eax
je 0x4c1eff
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4c1f1d
cmp dword [edi + 8], 9
jb 0x4c1f0e
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
push ebx
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0xb0], 0
je 0x4c1f4b
push dword [esp + 0xb4]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x84]
neg eax
jo 0x4c1f72
jb 0x4c1f7a
test dword [esp + 0x90], 0x7fffffff
jne 0x4c1f9c
test dword [esp + 0x9c], 0x7fffffff
jne 0x4c1fbe
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x88]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esp + 0x90], 0x7fffffff
je 0x4c1f65
push dword [esp + 0x94]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esp + 0x9c], 0x7fffffff
je 0x4c1f72
push dword [esp + 0xa0]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4c1f72
mov edx, dword [esp + 0x304]
mov ecx, dword [esp + 0x301]
mov dword [esp + 0x1fc], edx
mov dword [esp + 0x1f9], ecx
mov byte [esp + 0x1f8], al
jmp 0x4c1e82
jne 0x4c2376
cmp eax, 5
jne 0x4c1d3f
mov eax, 0x70747468
movzx edx, byte [esi + 4]
xor eax, dword [esi]
xor edx, 0x73
or edx, eax
jne 0x4c1d3f
mov eax, dword [esp + 0x84]
neg eax
jo 0x4c1d3f
mov eax, dword [esp + 0x20]
lea ebx, [esp + 0x1f8]
lea edx, [esp + 0x84]
mov ecx, ebx
push dword [eax + 0x58]
push dword [eax + 0x54]
push dword [ebp + 0x10]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
call fcn.004c3100
add esp, 0x14
lea eax, [esp + 0x300]
mov dword [esp + 0xd0], 0x5f74ec
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x300], ebx
mov dword [esp + 0x304], 0x40c140
mov dword [esp + 0xd8], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0xdc], 1
push eax
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x3c8]
push ebx
call fcn.004c2820
add esp, 0xc
cmp byte [esp + 0x3c0], 4
jne 0x4c2376
cmp dword [esp + 0x1f8], 0
je 0x4c20fa
push dword [esp + 0x1fc]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xd0]
call fcn.0048fa60
movzx eax, byte [esp + 0xd0]
cmp al, 4
jne 0x4c212d
mov ebx, dword [esp + 0xd4]
cmp edi, 6
jb 0x4c2166
cmp byte [esi + 5], 0xbf
jg 0x4c216f
jmp 0x4c2376
movzx ecx, byte [esp + 0xd3]
movzx esi, word [esp + 0xd1]
mov edx, dword [esp + 0xd4]
mov byte [esp + 0x1fb], cl
mov word [esp + 0x1f9], si
mov byte [esp + 0x1f8], al
mov dword [esp + 0x1fc], edx
jmp 0x4c1e82
cmp edi, 5
jne 0x4c2376
lea ecx, [esp + 0x4a4]
mov edx, esi
push dword [ebp + 0x10]
push dword [esp + 0x84]
push dword [esp + 0x84]
push 5
call fcn.004c3400
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x5c]
jmp 0x4c219e
pause
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4c219c
test eax, eax
js 0x4c2376
lea edx, [eax + 1]
lock cmpxchg dword [ecx + 4], edx
jne 0x4c21a1
mov dword [esp + 0x458], ecx
lea edi, [esp + 0x45c]
lea esi, [esp + 0x4a4]
mov ecx, 0x12
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x4ec]
movzx eax, word [esp + 0x32]
movq xmm0, qword [esp + 0x1d8]
mov ecx, esi
mov word [esp + 0xd0], ax
movzx eax, word [esp + 0x1e0]
movq qword [esp + 0xd2], xmm0
mov word [esp + 0xda], ax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xe8], eax
movzx eax, word [esp + 0x34]
mov word [esp + 0xec], ax
movzx eax, word [esp + 0x36]
mov word [esp + 0xee], ax
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.004c2380
add esp, 8
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x3c0]
mov ecx, edi
call fcn.004b3800
lea ecx, [esp + 0xd0]
mov edx, esi
push edi
call fcn.004b3ab0
add esp, 4
mov esi, dword [esp + 0xd0]
lea eax, [esp + 0xd4]
push 0xc0
push eax
lea ebx, [esp + 0x200]
push ebx
call fcn.004ef180
add esp, 0xc
cmp esi, 3
jne 0x4c2344
push 0xc0
push ebx
lea eax, [esp + 0x308]
push eax
call fcn.004ef180
add esp, 0xc
movzx ecx, word [esp + 0x3bc]
cmp ecx, 0xc8
je 0x4c2361
mov ebx, dword [esp + 4]
cmp ecx, 0x191
je 0x4c22f9
mov al, 0xa
cmp ecx, 0x197
jne 0x4c22fb
mov al, 0xb
mov ecx, dword [esp + 0x14]
mov dword [ecx], 2
mov dword [ecx + 4], 2
mov dword [ecx + 0x4c], 0x80000000
mov dword [ecx + 0x58], 0
mov byte [ecx + 0x60], al
lea ecx, [esp + 0x300]
call fcn.0049b7a0
mov edi, dword [esp]
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4c1f2c
jmp 0x4c1ee7
mov edi, dword [esp + 0x14]
lea eax, [edi + 4]
push 0xc0
push ebx
push eax
call fcn.004ef180
add esp, 0xc
mov dword [edi], esi
jmp 0x4c1ed1
lea ecx, [esp + 0x300]
call fcn.0049b7a0
mov ecx, dword [esp + 4]
jmp 0x4c1d3f
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
ud2