Function at 0x4c2b40
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 0x4c2b90
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 0x4c2cf4
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 0x4c4bb8
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
movq xmm0, qword [0x9031f8]
movd esi, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 4], ecx
movd edx, xmm0
mov eax, esi
or eax, edx
jne 0x4c2c4d
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
push edi
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4c4bb8
movq xmm0, qword [esp + 0xd0]
mov esi, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
movq qword [0x9031f8], xmm0
mov eax, esi
mov ecx, dword [esp + 4]
or eax, edx
je 0x4c4bb6
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esp], edx
push edx
push esi
push ecx
push ebx
call fcn.004ec950
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.004ec950
mov esi, eax
add esi, dword [esp + 4]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004ec950
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 0x4c2db1
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x70], edi
cmp eax, dword [ecx + 0x5c]
jno 0x4c2d7f
lea eax, [esp + 0x7c]
lea edx, [ebp + 0x10]
lea ecx, [esp + 0x1f8]
mov dword [esp + 0xd0], 0x8ebbcc
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], 0x4055f0
mov dword [esp + 0x200], edx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x204], 0x41fbf0
mov dword [esp + 0xdc], 2
jmp 0x4c2f99
mov esi, dword [ecx + 0x64]
mov eax, ecx
test esi, esi
js 0x4c4bb6
mov ecx, dword [eax + 0x60]
je 0x4c2df3
mov dword [esp], ecx
xor ecx, ecx
mov edx, esi
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x4c4bb6
mov ecx, dword [esp]
jmp 0x4c2df8
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 0x4c2b87
mov eax, edi
and eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x4c2cf4
add ecx, 0xc4653600
add edi, 1
adc dword [esp + 0x48], 0
jmp 0x4c2b87
mov eax, 1
mov dword [esp], esi
push esi
push ecx
mov dword [esp + 0xc], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
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 0x4c2e33
mov edi, 0x80000000
cmp edx, dword [eax + 0x74]
jno 0x4c2e7b
jmp 0x4c2ec3
mov edi, dword [eax + 0x70]
test edi, edi
js 0x4c4bb6
mov esi, dword [eax + 0x6c]
je 0x4c2e5c
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, edi
call fcn.0049d570
test eax, eax
jne 0x4c2e61
jmp 0x4c4bb6
mov eax, 1
push edi
push esi
mov dword [esp + 0x18], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x20]
xor edx, edx
cmp edx, dword [eax + 0x74]
jo 0x4c2e2e
mov ebx, dword [eax + 0x7c]
test ebx, ebx
js 0x4c4bb6
mov eax, dword [eax + 0x78]
je 0x4c2eaf
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x4c4bb6
mov esi, eax
mov eax, dword [esp + 0xc]
jmp 0x4c2eb4
mov esi, 1
push ebx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
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], 0x8ebbcc
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], 0x40a570
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], 0x41fcd0
lea edx, [esp + 0xd0]
mov ecx, esi
call fcn.0041bf90
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 0x4c4bb6
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 0x4c3127
movq xmm0, qword [esp + 0x3c4]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x1f8]
mov dword [esp + str.resolve_dns_name_], 0x8ec2b4
mov dword [esp + 0x1fc], 2
mov dword [esp + 0x208], 0
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 0x40a570
mov dword [esp + 0x200], eax
mov dword [esp + 0x204], 1
movq qword [esp + 0x24], xmm0
call fcn.0041bf90
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.004a6dd0
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 sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, 3
mov dword [esp], ebx
jne 0x4c3bbf
mov ebx, dword [esp + 0x4c]
lock dec dword [edi]
je 0x4c313e
jmp 0x4c3147
mov eax, dword [esp + 0x3c4]
mov ebx, dword [esp + 0x3c8]
mov dword [esp + 0x3c], eax
lock dec dword [edi]
jne 0x4c3147
mov ecx, edi
mov edx, esi
call fcn.00469100
test ebx, ebx
je 0x4c3b30
xor eax, eax
mov dword [esp + 4], 4
cmp eax, dword [esp + 0x84]
mov eax, 4
jo 0x4c316e
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 0x4c31b5
add esi, 0x20
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
cmp esi, dword [esp + 0x74]
je 0x4c3c15
movzx eax, word [esi]
mov word [esp + 0x32], 2
cmp eax, 2
je 0x4c3c0d
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 0x4c33ca
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 0x4c4bb8
mov esi, dword [esp + 0x300]
mov edi, dword [esp + 0x304]
movq xmm0, qword [0x9031f8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4c32ef
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 0x4c4bb8
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0x9031f8], xmm0
or eax, ecx
je 0x4c4bb6
mov dword [esp + 0xc], ecx
push ecx
push edx
push edi
push esi
mov ebx, edx
mov dword [esp + 0x3c], edx
call fcn.004ec950
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.004ec950
mov esi, eax
add esi, dword [esp + 0x18]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004ec950
imul ecx, eax, 0x3b9aca00
mov edi, edx
mov edx, eax
sub esi, ecx
lea ecx, [esp + 0xd0]
push esi
push edi
call fcn.0048cf70
add esp, 8
cmp ecx, 0x3b9aca00
je 0x4c3f79
cmp dword [esp + 0x4c], 1
mov esi, edx
mov edi, ecx
je 0x4c33ca
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 0x4c3450
cmp edi, 0x3b9aca00
jne 0x4c34a0
mov edx, dword [esp + 0x10]
cmp edx, 2
je 0x4c35c0
movd xmm0, dword [esp + 0x60]
movzx ecx, word [esp + 0x64]
mov eax, dword [esp + 0x66]
cmp edx, 3
jne 0x4c35ca
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.0049d5b0
cmp byte [esp + 0x3c0], 4
mov esi, dword [esp]
jne 0x4c37cb
mov eax, dword [esp + 0x3c4]
jmp 0x4c3674
xor eax, eax
cmp eax, dword [esp + 0x84]
jo 0x4c4bb6
mov esi, dword [esp + 0x8c]
test esi, esi
js 0x4c4bb6
mov edi, dword [esp + 0x88]
je 0x4c3552
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, esi
call fcn.0049d570
test eax, eax
jne 0x4c3557
jmp 0x4c4bb6
mov dword [esp + 0x2c], eax
mov eax, dword [0x9031e8]
cmp eax, 3
jne 0x4c39bf
mov edx, dword [esp + 0x10]
lea ebx, [esp + 0xd0]
mov ecx, ebx
call fcn.00493a00
movzx ecx, byte [esp + 0xd0]
cmp cl, 4
jne 0x4c352e
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 0x4c38a6
test byte [esp + 0x10], 1
je 0x4c37f1
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 0x4c3810
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 0x4c38d3
mov eax, 1
push esi
push edi
mov dword [esp + 0x14], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov ebx, 0x80000000
mov edi, 0x80000000
cmp eax, dword [esp + 0x90]
jo 0x4c36a1
mov edi, dword [esp + 0x98]
test edi, edi
js 0x4c4bb6
mov ecx, dword [esp + 0x94]
je 0x4c368d
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov edx, edi
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x4c4bb6
mov ecx, dword [esp + 0x2c]
jmp 0x4c3692
mov ecx, 4
jmp 0x4c378e
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.0049d5b0
cmp byte [esp + 0x300], 4
mov eax, dword [esp + 0x304]
jne 0x4c3787
mov esi, dword [esp]
mov dword [esp + 0x28], eax
mov byte [esp + 0x24], 4
cmp byte [esp + 0x24], 4
jne 0x4c38ee
jmp 0x4c3ea6
mov eax, 1
push edi
push ecx
mov dword [esp + 0x34], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
cmp eax, dword [esp + 0x9c]
jo 0x4c36fa
mov ebx, dword [esp + 0xa4]
test ebx, ebx
js 0x4c4bb6
mov ecx, dword [esp + 0xa0]
je 0x4c36e6
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x4c4bb6
mov ecx, dword [esp + 0x18]
jmp 0x4c36eb
mov eax, 1
push ebx
push ecx
mov dword [esp + 0x20], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x24]
mov edx, 0x27
push 0x17
push str.SOCKS_feature_disabled.unknown_scheme_
call fcn.004ab540
add esp, 8
test esi, esi
je 0x4c3728
push dword [esp + 0xc]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [esp]
test edi, 0x7fffffff
jne 0x4c374b
test ebx, 0x7fffffff
jne 0x4c3765
cmp byte [esp + 0x24], 4
jne 0x4c38ee
jmp 0x4c3ea6
push dword [esp + 0x2c]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
test ebx, 0x7fffffff
je 0x4c373b
push dword [esp + 0x18]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp byte [esp + 0x24], 4
jne 0x4c38ee
jmp 0x4c3ea6
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, 0x8ea11c
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 0x4c38ee
jmp 0x4c3ea6
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 0x4c3966
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 0x4c3eae
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 0x4c3ea6
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp byte [esp + 4], 3
jne 0x4c3951
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 0x4c3918
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4c3936
cmp dword [edi + 8], 9
jb 0x4c3927
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esp + 8]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, ebx
mov ebx, dword [esp + 4]
mov esi, dword [esp]
cmp bl, 4
jne 0x4c31a0
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4c31a0
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 0x4c38a6
mov ecx, dword [esp + 0x18]
call fcn.0048edc0
xor ebx, ebx
cmp al, 0xd
jne 0x4c39c9
mov ecx, dword [esp + 0x2c]
mov eax, ecx
or eax, esi
or eax, edi
jne 0x4c39db
mov eax, 0x8c6730
mov cl, 2
jmp 0x4c38b0
call fcn.004f1820
jmp 0x4c34b2
mov esi, dword [esp]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
xor ecx, ecx
jmp 0x4c38b7
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 sub.VCRUNTIME140.dll_memset
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 sub.VCRUNTIME140.dll_memset
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 0x4c3ab5
mov esi, dword [esp]
cmp eax, 0xffffffff
jne 0x4c3ac1
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 0x6c], 0
jmp 0x4c3b1c
mov esi, dword [esp]
mov cl, 2
mov eax, 0x8c675c
jmp 0x4c3b1e
cmp dword [esp + 0x1f8], 1
mov cl, 4
jne 0x4c3ad6
mov eax, dword [esp + 0xbc]
jmp 0x4c3b1e
lea ecx, [esp + 0x300]
mov edx, edi
call fcn.00493ab0
test byte [esp + 0x300], 1
je 0x4c3af7
mov ebx, dword [esp + 0x304]
jmp 0x4c3b0c
mov ebx, dword [esp + 0x304]
mov eax, dword [esp + 0xbc]
mov cl, 4
cmp bl, 4
je 0x4c3b1e
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 0x4c38b7
jmp 0x4c3eae
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
lea edx, [esp + 0xd0]
mov dword [esp + 0xd0], 0x8ec298
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x1f8], eax
lea eax, [esp + 0x1f8]
mov dword [esp + 0x1fc], 0x4055f0
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 1
lea ecx, [esi + 0x4c]
call fcn.0041bf90
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 0x4c476c
push dword [esp + 0x3c]
jmp 0x4c475e
mov ebx, dword [esp + 0x14]
lea eax, [ebx + 0x10]
push 0xb4
lea ecx, [esp + 0x304]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
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 0x4c476c
mov ecx, edi
mov edx, esi
call fcn.00469100
jmp 0x4c476c
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp dword [esp + 0x44], 0
je 0x4c3c2e
push dword [esp + 0x3c]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp word [esp + 0x32], 2
jne 0x4c3cea
cmp bl, 4
je 0x4c4bb6
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], edi
xor ecx, ecx
mov edx, 0xd
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
je 0x4c4bb6
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.004a6dd0
add esp, 4
jmp 0x4c476c
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 0x4c3eeb
mov eax, dword [esp + 0x38]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov ecx, dword [eax + 0x50]
cmp ecx, 0x3b9aca00
jne 0x4c4089
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x20]
cmp ecx, 0x3b9aca00
je 0x4c3dc6
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 0x4c3dc2
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4c4485
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 0x4c4381
mov bl, 4
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
jne 0x4c4397
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x30]
cmp ecx, 0x3b9aca00
je 0x4c3e69
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 0x4c3e65
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4c4649
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 0x4c440b
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4c456d
jmp 0x4c46a2
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 0x4c3c1c
jmp 0x4c3c2e
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.004a6dd0
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4c476c
jmp 0x4c4727
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x1a
call fcn.0049d570
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
test eax, eax
je 0x4c4bb6
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.004bace0
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.004a6dd0
add esp, 4
test ebx, ebx
je 0x4c4073
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp bl, 4
jne 0x4c4727
jmp 0x4c476c
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 0x4c4bb8
mov edi, dword [esp + 0x300]
mov esi, dword [esp + 0x304]
movq xmm0, qword [0x9031f8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4c415a
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 0x4c4bb8
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0x9031f8], xmm0
or eax, ecx
je 0x4c4bb6
mov dword [esp + 8], ecx
push ecx
push edx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x20], edx
call fcn.004ec950
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.004ec950
mov edi, eax
add edi, dword [esp + 0x1c]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push edi
call fcn.004ec950
imul ecx, eax, 0x3b9aca00
mov esi, edx
mov edx, eax
sub edi, ecx
lea ecx, [esp + 0xd0]
push edi
push esi
call fcn.0048cf70
add esp, 8
cmp ecx, 0x3b9aca00
jne 0x4c42ed
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, 0x1a
call fcn.0049d570
test eax, eax
je 0x4c4bb6
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.004bace0
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 0x4c4709
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 0x4c4341
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 0x4c44e6
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 0x4c4423
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4c4436
jmp 0x4c46a2
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
je 0x4c3e01
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.004a6dd0
add esp, 4
jmp 0x4c4714
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4c46a2
jmp 0x4c456d
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4c46a2
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xd0]
push dword [esp + 0x74]
push dword [esp + 0x30]
call fcn.004c5700
add esp, 8
mov edi, dword [esp + 0xd8]
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0xd4]
cmp edi, 0x3b9aca00
jne 0x4c4547
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1fc], esi
jmp 0x4c46c2
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 0x4c3dc6
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 0x4c3dc6
mov ebx, dword [0x8c6740]
mov eax, dword [0x8c6744]
mov edi, dword [esp]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4c3e01
jmp 0x4c4397
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 0x4c4348
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 0x4c4348
mov ebx, dword [0x8c6740]
mov eax, dword [0x8c6744]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4c4436
jmp 0x4c46a2
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x300]
push edi
push esi
push eax
call fcn.00493d10
add esp, 0xc
movzx eax, byte [esp + 0x300]
cmp al, 4
jne 0x4c4815
cmp byte [esp + 0x1e8], 0
mov ecx, dword [esp + 4]
je 0x4c4619
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.004c58f0
cmp dword [esp + 0xb0], 0
je 0x4c4608
push dword [esp + 0xb4]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [esp + 0x84]
call fcn.004ad7a0
jmp 0x4c47b2
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4c457f
mov edx, dword [esp + 0x38]
mov edi, dword [edx + 0x18]
mov esi, dword [edx + 0x14]
cmp eax, edi
jae 0x4c483d
cmp byte [esi + eax], 0xbf
jg 0x4c4843
jmp 0x4c4bb6
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 0x4c3e69
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 0x4c3e69
mov ebx, dword [0x8c6740]
mov eax, dword [0x8c6744]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4c456d
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.004a6dd0
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 0x4c476c
cmp bl, 3
jne 0x4c476c
mov esi, dword [edi]
mov ebx, edi
mov edi, dword [edi + 4]
mov eax, dword [edi]
test eax, eax
je 0x4c473f
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4c475d
cmp dword [edi + 8], 9
jb 0x4c474e
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push ebx
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0xb0], 0
je 0x4c478b
push dword [esp + 0xb4]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x84]
neg eax
jo 0x4c47b2
jb 0x4c47ba
test dword [esp + 0x90], 0x7fffffff
jne 0x4c47dc
test dword [esp + 0x9c], 0x7fffffff
jne 0x4c47fe
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x88]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esp + 0x90], 0x7fffffff
je 0x4c47a5
push dword [esp + 0x94]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esp + 0x9c], 0x7fffffff
je 0x4c47b2
push dword [esp + 0xa0]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4c47b2
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 0x4c46c2
jne 0x4c4bb6
cmp eax, 5
jne 0x4c457f
mov eax, 0x70747468
movzx edx, byte [esi + 4]
xor eax, dword [esi]
xor edx, 0x73
or edx, eax
jne 0x4c457f
mov eax, dword [esp + 0x84]
neg eax
jo 0x4c457f
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.004c5940
add esp, 0x14
lea eax, [esp + 0x300]
mov dword [esp + 0xd0], 0x8fe5a0
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x300], ebx
mov dword [esp + 0x304], 0x40a570
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.004c5060
add esp, 0xc
cmp byte [esp + 0x3c0], 4
jne 0x4c4bb6
cmp dword [esp + 0x1f8], 0
je 0x4c493a
push dword [esp + 0x1fc]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xd0]
call fcn.00493b30
movzx eax, byte [esp + 0xd0]
cmp al, 4
jne 0x4c496d
mov ebx, dword [esp + 0xd4]
cmp edi, 6
jb 0x4c49a6
cmp byte [esi + 5], 0xbf
jg 0x4c49af
jmp 0x4c4bb6
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 0x4c46c2
cmp edi, 5
jne 0x4c4bb6
lea ecx, [esp + 0x4a4]
mov edx, esi
push dword [ebp + 0x10]
push dword [esp + 0x84]
push dword [esp + 0x84]
push 5
call fcn.004c5c40
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x5c]
jmp 0x4c49de
pause
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4c49dc
test eax, eax
js 0x4c4bb6
lea edx, [eax + 1]
lock cmpxchg dword [ecx + 4], edx
jne 0x4c49e1
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.004c4bc0
add esp, 8
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x3c0]
mov ecx, edi
call fcn.004b63e0
lea ecx, [esp + 0xd0]
mov edx, esi
push edi
call fcn.004b6690
add esp, 4
mov esi, dword [esp + 0xd0]
lea eax, [esp + 0xd4]
push 0xc0
push eax
lea ebx, [esp + 0x200]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 3
jne 0x4c4b84
push 0xc0
push ebx
lea eax, [esp + 0x308]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx ecx, word [esp + 0x3bc]
cmp ecx, 0xc8
je 0x4c4ba1
mov ebx, dword [esp + 4]
cmp ecx, 0x191
je 0x4c4b39
mov al, 0xa
cmp ecx, 0x197
jne 0x4c4b3b
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.00406b50
mov edi, dword [esp]
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4c476c
jmp 0x4c4727
mov edi, dword [esp + 0x14]
lea eax, [edi + 4]
push 0xc0
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi], esi
jmp 0x4c4711
lea ecx, [esp + 0x300]
call fcn.00406b50
mov ecx, dword [esp + 4]
jmp 0x4c457f
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
ud2