Function at 0x4bc080
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 0x4bc0d0
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 0x4bc234
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 0x4be0f8
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
movq xmm0, qword [0xfd51f8]
movd esi, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 4], ecx
movd edx, xmm0
mov eax, esi
or eax, edx
jne 0x4bc18d
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4be0f8
movq xmm0, qword [esp + 0xd0]
mov esi, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
movq qword [0xfd51f8], xmm0
mov eax, esi
mov ecx, dword [esp + 4]
or eax, edx
je 0x4be0f6
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esp], edx
push edx
push esi
push ecx
push ebx
call fcn.004e5ff0
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.004e5ff0
mov esi, eax
add esi, dword [esp + 4]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004e5ff0
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 0x4bc2f1
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x70], edi
cmp eax, dword [ecx + 0x5c]
jno 0x4bc2bf
lea eax, [esp + 0x7c]
lea edx, [ebp + 0x10]
lea ecx, [esp + 0x1f8]
mov dword [esp + 0xd0], 0xfbda0c
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], 0x49bdf0
mov dword [esp + 0x200], edx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x204], 0x419160
mov dword [esp + 0xdc], 2
jmp 0x4bc4d9
mov esi, dword [ecx + 0x64]
mov eax, ecx
test esi, esi
js 0x4be0f6
mov ecx, dword [eax + 0x60]
je 0x4bc333
mov dword [esp], ecx
xor ecx, ecx
mov edx, esi
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4be0f6
mov ecx, dword [esp]
jmp 0x4bc338
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 0x4bc0c7
mov eax, edi
and eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x4bc234
add ecx, 0xc4653600
add edi, 1
adc dword [esp + 0x48], 0
jmp 0x4bc0c7
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 0x4bc373
mov edi, 0x80000000
cmp edx, dword [eax + 0x74]
jno 0x4bc3bb
jmp 0x4bc403
mov edi, dword [eax + 0x70]
test edi, edi
js 0x4be0f6
mov esi, dword [eax + 0x6c]
je 0x4bc39c
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, edi
call fcn.00494530
test eax, eax
jne 0x4bc3a1
jmp 0x4be0f6
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 0x4bc36e
mov ebx, dword [eax + 0x7c]
test ebx, ebx
js 0x4be0f6
mov eax, dword [eax + 0x78]
je 0x4bc3ef
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4be0f6
mov esi, eax
mov eax, dword [esp + 0xc]
jmp 0x4bc3f4
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], 0xfbda0c
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], 0x407160
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], 0x419240
lea edx, [esp + 0xd0]
mov ecx, esi
call fcn.00415500
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 0x4be0f6
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 0x4bc667
movq xmm0, qword [esp + 0x3c4]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x1f8]
mov dword [esp + 0x1f8], 0xfbe0f4
mov dword [esp + 0x1fc], 2
mov dword [esp + 0x208], 0
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 0x407160
mov dword [esp + 0x200], eax
mov dword [esp + 0x204], 1
movq qword [esp + 0x24], xmm0
call fcn.00415500
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.0049f730
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 0x4bd0ff
mov ebx, dword [esp + 0x4c]
lock dec dword [edi]
je 0x4bc67e
jmp 0x4bc687
mov eax, dword [esp + 0x3c4]
mov ebx, dword [esp + 0x3c8]
mov dword [esp + 0x3c], eax
lock dec dword [edi]
jne 0x4bc687
mov ecx, edi
mov edx, esi
call fcn.00441050
test ebx, ebx
je 0x4bd070
xor eax, eax
mov dword [esp + 4], 4
cmp eax, dword [esp + 0x84]
mov eax, 4
jo 0x4bc6ae
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 0x4bc6f5
add esi, 0x20
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
cmp esi, dword [esp + 0x74]
je 0x4bd155
movzx eax, word [esi]
mov word [esp + 0x32], 2
cmp eax, 2
je 0x4bd14d
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 0x4bc90a
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 0x4be0f8
mov esi, dword [esp + 0x300]
mov edi, dword [esp + 0x304]
movq xmm0, qword [0xfd51f8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4bc82f
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 0x4be0f8
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0xfd51f8], xmm0
or eax, ecx
je 0x4be0f6
mov dword [esp + 0xc], ecx
push ecx
push edx
push edi
push esi
mov ebx, edx
mov dword [esp + 0x3c], edx
call fcn.004e5ff0
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.004e5ff0
mov esi, eax
add esi, dword [esp + 0x18]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004e5ff0
imul ecx, eax, 0x3b9aca00
mov edi, edx
mov edx, eax
sub esi, ecx
lea ecx, [esp + 0xd0]
push esi
push edi
call fcn.00484780
add esp, 8
cmp ecx, 0x3b9aca00
je 0x4bd4b9
cmp dword [esp + 0x4c], 1
mov esi, edx
mov edi, ecx
je 0x4bc90a
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 0x4bc990
cmp edi, 0x3b9aca00
jne 0x4bc9e0
mov edx, dword [esp + 0x10]
cmp edx, 2
je 0x4bcb00
movd xmm0, dword [esp + 0x60]
movzx ecx, word [esp + 0x64]
mov eax, dword [esp + 0x66]
cmp edx, 3
jne 0x4bcb0a
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.00494550
cmp byte [esp + 0x3c0], 4
mov esi, dword [esp]
jne 0x4bcd0b
mov eax, dword [esp + 0x3c4]
jmp 0x4bcbb4
xor eax, eax
cmp eax, dword [esp + 0x84]
jo 0x4be0f6
mov esi, dword [esp + 0x8c]
test esi, esi
js 0x4be0f6
mov edi, dword [esp + 0x88]
je 0x4bca92
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, esi
call fcn.00494530
test eax, eax
jne 0x4bca97
jmp 0x4be0f6
mov dword [esp + 0x2c], eax
mov eax, dword [0xfd51e8]
cmp eax, 3
jne 0x4bceff
mov edx, dword [esp + 0x10]
lea ebx, [esp + 0xd0]
mov ecx, ebx
call fcn.0048a880
movzx ecx, byte [esp + 0xd0]
cmp cl, 4
jne 0x4bca6e
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 0x4bcde6
test byte [esp + 0x10], 1
je 0x4bcd31
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 0x4bcd50
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 0x4bce13
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 0x4bcbe1
mov edi, dword [esp + 0x98]
test edi, edi
js 0x4be0f6
mov ecx, dword [esp + 0x94]
je 0x4bcbcd
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov edx, edi
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4be0f6
mov ecx, dword [esp + 0x2c]
jmp 0x4bcbd2
mov ecx, 4
jmp 0x4bccce
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.00494550
cmp byte [esp + 0x300], 4
mov eax, dword [esp + 0x304]
jne 0x4bccc7
mov esi, dword [esp]
mov dword [esp + 0x28], eax
mov byte [esp + 0x24], 4
cmp byte [esp + 0x24], 4
jne 0x4bce2e
jmp 0x4bd3e6
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 0x4bcc3a
mov ebx, dword [esp + 0xa4]
test ebx, ebx
js 0x4be0f6
mov ecx, dword [esp + 0xa0]
je 0x4bcc26
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4be0f6
mov ecx, dword [esp + 0x18]
jmp 0x4bcc2b
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 0xfbe104
call fcn.004a4210
add esp, 8
test esi, esi
je 0x4bcc68
push dword [esp + 0xc]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp]
test edi, 0x7fffffff
jne 0x4bcc8b
test ebx, 0x7fffffff
jne 0x4bcca5
cmp byte [esp + 0x24], 4
jne 0x4bce2e
jmp 0x4bd3e6
push dword [esp + 0x2c]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, 0x7fffffff
je 0x4bcc7b
push dword [esp + 0x18]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [esp + 0x24], 4
jne 0x4bce2e
jmp 0x4bd3e6
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, 0xfb86ec
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 0x4bce2e
jmp 0x4bd3e6
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 0x4bcea6
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 0x4bd3ee
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 0x4bd3e6
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp byte [esp + 4], 3
jne 0x4bce91
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 0x4bce58
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4bce76
cmp dword [edi + 8], 9
jb 0x4bce67
mov esi, dword [esi - 4]
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 8]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, ebx
mov ebx, dword [esp + 4]
mov esi, dword [esp]
cmp bl, 4
jne 0x4bc6e0
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4bc6e0
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 0x4bcde6
mov ecx, dword [esp + 0x18]
call fcn.004865d0
xor ebx, ebx
cmp al, 0xd
jne 0x4bcf09
mov ecx, dword [esp + 0x2c]
mov eax, ecx
or eax, esi
or eax, edi
jne 0x4bcf1b
mov eax, 0xf94d00
mov cl, 2
jmp 0x4bcdf0
call fcn.004e99b0
jmp 0x4bc9f2
mov esi, dword [esp]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
xor ecx, ecx
jmp 0x4bcdf7
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 0x4bcff5
mov esi, dword [esp]
cmp eax, 0xffffffff
jne 0x4bd001
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 0x6c], 0
jmp 0x4bd05c
mov esi, dword [esp]
mov cl, 2
mov eax, 0xf94d2c
jmp 0x4bd05e
cmp dword [esp + 0x1f8], 1
mov cl, 4
jne 0x4bd016
mov eax, dword [esp + 0xbc]
jmp 0x4bd05e
lea ecx, [esp + 0x300]
mov edx, edi
call fcn.0048a930
test byte [esp + 0x300], 1
je 0x4bd037
mov ebx, dword [esp + 0x304]
jmp 0x4bd04c
mov ebx, dword [esp + 0x304]
mov eax, dword [esp + 0xbc]
mov cl, 4
cmp bl, 4
je 0x4bd05e
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 0x4bcdf7
jmp 0x4bd3ee
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
lea edx, [esp + 0xd0]
mov dword [esp + 0xd0], 0xfbe0d8
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x1f8], eax
lea eax, [esp + 0x1f8]
mov dword [esp + 0x1fc], 0x49bdf0
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 1
lea ecx, [esi + 0x4c]
call fcn.00415500
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 0x4bdcac
push dword [esp + 0x3c]
jmp 0x4bdc9e
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 0x4bdcac
mov ecx, edi
mov edx, esi
call fcn.00441050
jmp 0x4bdcac
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp dword [esp + 0x44], 0
je 0x4bd16e
push dword [esp + 0x3c]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp word [esp + 0x32], 2
jne 0x4bd22a
cmp bl, 4
je 0x4be0f6
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], edi
xor ecx, ecx
mov edx, 0xd
movzx eax, byte [0xfd520d]
call fcn.00494530
test eax, eax
je 0x4be0f6
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.0049f730
add esp, 4
jmp 0x4bdcac
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 0x4bd42b
mov eax, dword [esp + 0x38]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov ecx, dword [eax + 0x50]
cmp ecx, 0x3b9aca00
jne 0x4bd5c9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x20]
cmp ecx, 0x3b9aca00
je 0x4bd306
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 0x4bd302
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4bd9c5
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 0x4bd8c1
mov bl, 4
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
jne 0x4bd8d7
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x30]
cmp ecx, 0x3b9aca00
je 0x4bd3a9
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 0x4bd3a5
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4bdb89
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 0x4bd94b
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4bdaad
jmp 0x4bdbe2
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 0x4bd15c
jmp 0x4bd16e
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.0049f730
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4bdcac
jmp 0x4bdc67
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 0x1a
call fcn.00494530
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
test eax, eax
je 0x4be0f6
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.004b3da0
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.0049f730
add esp, 4
test ebx, ebx
je 0x4bd5b3
push edi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp bl, 4
jne 0x4bdc67
jmp 0x4bdcac
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 0x4be0f8
mov edi, dword [esp + 0x300]
mov esi, dword [esp + 0x304]
movq xmm0, qword [0xfd51f8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4bd69a
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 0x4be0f8
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0xfd51f8], xmm0
or eax, ecx
je 0x4be0f6
mov dword [esp + 8], ecx
push ecx
push edx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x20], edx
call fcn.004e5ff0
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.004e5ff0
mov edi, eax
add edi, dword [esp + 0x1c]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push edi
call fcn.004e5ff0
imul ecx, eax, 0x3b9aca00
mov esi, edx
mov edx, eax
sub edi, ecx
lea ecx, [esp + 0xd0]
push edi
push esi
call fcn.00484780
add esp, 8
cmp ecx, 0x3b9aca00
jne 0x4bd82d
movzx eax, byte [0xfd520d]
xor ecx, ecx
mov edx, 0x1a
call fcn.00494530
test eax, eax
je 0x4be0f6
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.004b3da0
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 0x4bdc49
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 0x4bd881
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 0x4bda26
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 0x4bd963
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4bd976
jmp 0x4bdbe2
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
je 0x4bd341
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.0049f730
add esp, 4
jmp 0x4bdc54
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4bdbe2
jmp 0x4bdaad
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4bdbe2
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xd0]
push dword [esp + 0x74]
push dword [esp + 0x30]
call fcn.004bec40
add esp, 8
mov edi, dword [esp + 0xd8]
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0xd4]
cmp edi, 0x3b9aca00
jne 0x4bda87
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1fc], esi
jmp 0x4bdc02
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 0x4bd306
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 0x4bd306
mov ebx, dword [0xf94d10]
mov eax, dword [0xf94d14]
mov edi, dword [esp]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4bd341
jmp 0x4bd8d7
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 0x4bd888
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 0x4bd888
mov ebx, dword [0xf94d10]
mov eax, dword [0xf94d14]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4bd976
jmp 0x4bdbe2
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x300]
push edi
push esi
push eax
call fcn.0048ab90
add esp, 0xc
movzx eax, byte [esp + 0x300]
cmp al, 4
jne 0x4bdd55
cmp byte [esp + 0x1e8], 0
mov ecx, dword [esp + 4]
je 0x4bdb59
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.004bee30
cmp dword [esp + 0xb0], 0
je 0x4bdb48
push dword [esp + 0xb4]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x84]
call fcn.004a6780
jmp 0x4bdcf2
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4bdabf
mov edx, dword [esp + 0x38]
mov edi, dword [edx + 0x18]
mov esi, dword [edx + 0x14]
cmp eax, edi
jae 0x4bdd7d
cmp byte [esi + eax], 0xbf
jg 0x4bdd83
jmp 0x4be0f6
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 0x4bd3a9
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 0x4bd3a9
mov ebx, dword [0xf94d10]
mov eax, dword [0xf94d14]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4bdaad
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.0049f730
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 0x4bdcac
cmp bl, 3
jne 0x4bdcac
mov esi, dword [edi]
mov ebx, edi
mov edi, dword [edi + 4]
mov eax, dword [edi]
test eax, eax
je 0x4bdc7f
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4bdc9d
cmp dword [edi + 8], 9
jb 0x4bdc8e
mov esi, dword [esi - 4]
push esi
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0xb0], 0
je 0x4bdccb
push dword [esp + 0xb4]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x84]
neg eax
jo 0x4bdcf2
jb 0x4bdcfa
test dword [esp + 0x90], 0x7fffffff
jne 0x4bdd1c
test dword [esp + 0x9c], 0x7fffffff
jne 0x4bdd3e
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x88]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [esp + 0x90], 0x7fffffff
je 0x4bdce5
push dword [esp + 0x94]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [esp + 0x9c], 0x7fffffff
je 0x4bdcf2
push dword [esp + 0xa0]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4bdcf2
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 0x4bdc02
jne 0x4be0f6
cmp eax, 5
jne 0x4bdabf
mov eax, 0x70747468
movzx edx, byte [esi + 4]
xor eax, dword [esi]
xor edx, 0x73
or edx, eax
jne 0x4bdabf
mov eax, dword [esp + 0x84]
neg eax
jo 0x4bdabf
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.004bee80
add esp, 0x14
lea eax, [esp + 0x300]
mov dword [esp + 0xd0], 0xfd03d4
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x300], ebx
mov dword [esp + 0x304], 0x407160
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.004be5a0
add esp, 0xc
cmp byte [esp + 0x3c0], 4
jne 0x4be0f6
cmp dword [esp + 0x1f8], 0
je 0x4bde7a
push dword [esp + 0x1fc]
push 0
push dword [0xfd5200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xd0]
call fcn.0048a9b0
movzx eax, byte [esp + 0xd0]
cmp al, 4
jne 0x4bdead
mov ebx, dword [esp + 0xd4]
cmp edi, 6
jb 0x4bdee6
cmp byte [esi + 5], 0xbf
jg 0x4bdeef
jmp 0x4be0f6
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 0x4bdc02
cmp edi, 5
jne 0x4be0f6
lea ecx, [esp + 0x4a4]
mov edx, esi
push dword [ebp + 0x10]
push dword [esp + 0x84]
push dword [esp + 0x84]
push 5
call fcn.004bf180
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x5c]
jmp 0x4bdf1e
pause
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4bdf1c
test eax, eax
js 0x4be0f6
lea edx, [eax + 1]
lock cmpxchg dword [ecx + 4], edx
jne 0x4bdf21
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.004be100
add esp, 8
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x3c0]
mov ecx, edi
call fcn.004af410
lea ecx, [esp + 0xd0]
mov edx, esi
push edi
call fcn.004af6c0
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 0x4be0c4
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 0x4be0e1
mov ebx, dword [esp + 4]
cmp ecx, 0x191
je 0x4be079
mov al, 0xa
cmp ecx, 0x197
jne 0x4be07b
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.00496780
mov edi, dword [esp]
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4bdcac
jmp 0x4bdc67
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 0x4bdc51
lea ecx, [esp + 0x300]
call fcn.00496780
mov ecx, dword [esp + 4]
jmp 0x4bdabf
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
ud2