Function at 0x4b85f0
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 0x4b8640
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 0x4b87a4
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 0x4ba668
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
movq xmm0, qword [0x776178]
movd esi, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esp + 4], ecx
movd edx, xmm0
mov eax, esi
or eax, edx
jne 0x4b86fd
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4ba668
movq xmm0, qword [esp + 0xd0]
mov esi, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
movq qword [0x776178], xmm0
mov eax, esi
mov ecx, dword [esp + 4]
or eax, edx
je 0x4ba666
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esp], edx
push edx
push esi
push ecx
push ebx
call fcn.004e21b0
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.004e21b0
mov esi, eax
add esi, dword [esp + 4]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004e21b0
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 0x4b8861
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x70], edi
cmp eax, dword [ecx + 0x5c]
jno 0x4b882f
lea eax, [esp + 0x7c]
lea edx, [ebp + 0x10]
lea ecx, [esp + 0x1f8]
mov dword [esp + 0xd0], 0x75ec6c
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], 0x498340
mov dword [esp + 0x200], edx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x204], 0x415f60
mov dword [esp + 0xdc], 2
jmp 0x4b8a49
mov esi, dword [ecx + 0x64]
mov eax, ecx
test esi, esi
js 0x4ba666
mov ecx, dword [eax + 0x60]
je 0x4b88a3
mov dword [esp], ecx
xor ecx, ecx
mov edx, esi
movzx eax, byte [0x77618d]
call fcn.00490be0
test eax, eax
je 0x4ba666
mov ecx, dword [esp]
jmp 0x4b88a8
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 0x4b8637
mov eax, edi
and eax, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x4b87a4
add ecx, 0xc4653600
add edi, 1
adc dword [esp + 0x48], 0
jmp 0x4b8637
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 0x4b88e3
mov edi, 0x80000000
cmp edx, dword [eax + 0x74]
jno 0x4b892b
jmp 0x4b8973
mov edi, dword [eax + 0x70]
test edi, edi
js 0x4ba666
mov esi, dword [eax + 0x6c]
je 0x4b890c
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, edi
call fcn.00490be0
test eax, eax
jne 0x4b8911
jmp 0x4ba666
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 0x4b88de
mov ebx, dword [eax + 0x7c]
test ebx, ebx
js 0x4ba666
mov eax, dword [eax + 0x78]
je 0x4b895f
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0x77618d]
call fcn.00490be0
test eax, eax
je 0x4ba666
mov esi, eax
mov eax, dword [esp + 0xc]
jmp 0x4b8964
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], 0x75ec6c
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], 0x4068d0
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], 0x416040
lea edx, [esp + 0xd0]
mov ecx, esi
call fcn.00412300
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 0x4ba666
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 0x4b8bd7
movq xmm0, qword [esp + 0x3c4]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x1f8]
mov dword [esp + str.resolve_dns_name_], 0x75f334
mov dword [esp + 0x1fc], 2
mov dword [esp + 0x208], 0
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 0x4068d0
mov dword [esp + 0x200], eax
mov dword [esp + 0x204], 1
movq qword [esp + 0x24], xmm0
call fcn.00412300
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.0049bc70
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 0x4b966f
mov ebx, dword [esp + 0x4c]
lock dec dword [edi]
je 0x4b8bee
jmp 0x4b8bf7
mov eax, dword [esp + 0x3c4]
mov ebx, dword [esp + 0x3c8]
mov dword [esp + 0x3c], eax
lock dec dword [edi]
jne 0x4b8bf7
mov ecx, edi
mov edx, esi
call fcn.0043db30
test ebx, ebx
je 0x4b95e0
xor eax, eax
mov dword [esp + 4], 4
cmp eax, dword [esp + 0x84]
mov eax, 4
jo 0x4b8c1e
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 0x4b8c65
add esi, 0x20
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
cmp esi, dword [esp + 0x74]
je 0x4b96c5
movzx eax, word [esi]
mov word [esp + 0x32], 2
cmp eax, 2
je 0x4b96bd
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 0x4b8e7a
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 0x4ba668
mov esi, dword [esp + 0x300]
mov edi, dword [esp + 0x304]
movq xmm0, qword [0x776178]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4b8d9f
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 0x4ba668
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0x776178], xmm0
or eax, ecx
je 0x4ba666
mov dword [esp + 0xc], ecx
push ecx
push edx
push edi
push esi
mov ebx, edx
mov dword [esp + 0x3c], edx
call fcn.004e21b0
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.004e21b0
mov esi, eax
add esi, dword [esp + 0x18]
adc edx, edi
push 0
push 0x3b9aca00
push edx
push esi
call fcn.004e21b0
imul ecx, eax, 0x3b9aca00
mov edi, edx
mov edx, eax
sub esi, ecx
lea ecx, [esp + 0xd0]
push esi
push edi
call fcn.00481380
add esp, 8
cmp ecx, 0x3b9aca00
je 0x4b9a29
cmp dword [esp + 0x4c], 1
mov esi, edx
mov edi, ecx
je 0x4b8e7a
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 0x4b8f00
cmp edi, 0x3b9aca00
jne 0x4b8f50
mov edx, dword [esp + 0x10]
cmp edx, 2
je 0x4b9070
movd xmm0, dword [esp + 0x60]
movzx ecx, word [esp + 0x64]
mov eax, dword [esp + 0x66]
cmp edx, 3
jne 0x4b907a
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.00490c00
cmp byte [esp + 0x3c0], 4
mov esi, dword [esp]
jne 0x4b927b
mov eax, dword [esp + 0x3c4]
jmp 0x4b9124
xor eax, eax
cmp eax, dword [esp + 0x84]
jo 0x4ba666
mov esi, dword [esp + 0x8c]
test esi, esi
js 0x4ba666
mov edi, dword [esp + 0x88]
je 0x4b9002
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, esi
call fcn.00490be0
test eax, eax
jne 0x4b9007
jmp 0x4ba666
mov dword [esp + 0x2c], eax
mov eax, dword [0x776168]
cmp eax, 3
jne 0x4b946f
mov edx, dword [esp + 0x10]
lea ebx, [esp + 0xd0]
mov ecx, ebx
call fcn.00486f20
movzx ecx, byte [esp + 0xd0]
cmp cl, 4
jne 0x4b8fde
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 0x4b9356
test byte [esp + 0x10], 1
je 0x4b92a1
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 0x4b92c0
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 0x4b9383
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 0x4b9151
mov edi, dword [esp + 0x98]
test edi, edi
js 0x4ba666
mov ecx, dword [esp + 0x94]
je 0x4b913d
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov edx, edi
movzx eax, byte [0x77618d]
call fcn.00490be0
test eax, eax
je 0x4ba666
mov ecx, dword [esp + 0x2c]
jmp 0x4b9142
mov ecx, 4
jmp 0x4b923e
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.00490c00
cmp byte [esp + 0x300], 4
mov eax, dword [esp + 0x304]
jne 0x4b9237
mov esi, dword [esp]
mov dword [esp + 0x28], eax
mov byte [esp + 0x24], 4
cmp byte [esp + 0x24], 4
jne 0x4b939e
jmp 0x4b9956
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 0x4b91aa
mov ebx, dword [esp + 0xa4]
test ebx, ebx
js 0x4ba666
mov ecx, dword [esp + 0xa0]
je 0x4b9196
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov edx, ebx
movzx eax, byte [0x77618d]
call fcn.00490be0
test eax, eax
je 0x4ba666
mov ecx, dword [esp + 0x18]
jmp 0x4b919b
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.004a0750
add esp, 8
test esi, esi
je 0x4b91d8
push dword [esp + 0xc]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp]
test edi, 0x7fffffff
jne 0x4b91fb
test ebx, 0x7fffffff
jne 0x4b9215
cmp byte [esp + 0x24], 4
jne 0x4b939e
jmp 0x4b9956
push dword [esp + 0x2c]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, 0x7fffffff
je 0x4b91eb
push dword [esp + 0x18]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [esp + 0x24], 4
jne 0x4b939e
jmp 0x4b9956
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, 0x759944
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 0x4b939e
jmp 0x4b9956
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 0x4b9416
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 0x4b995e
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 0x4b9956
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp byte [esp + 4], 3
jne 0x4b9401
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 0x4b93c8
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4b93e6
cmp dword [edi + 8], 9
jb 0x4b93d7
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 8]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, ebx
mov ebx, dword [esp + 4]
mov esi, dword [esp]
cmp bl, 4
jne 0x4b8c50
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4b8c50
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 0x4b9356
mov ecx, dword [esp + 0x18]
call fcn.004831d0
xor ebx, ebx
cmp al, 0xd
jne 0x4b9479
mov ecx, dword [esp + 0x2c]
mov eax, ecx
or eax, esi
or eax, edi
jne 0x4b948b
mov eax, 0x735f58
mov cl, 2
jmp 0x4b9360
call fcn.004e5bf0
jmp 0x4b8f62
mov esi, dword [esp]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
xor ecx, ecx
jmp 0x4b9367
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 0x4b9565
mov esi, dword [esp]
cmp eax, 0xffffffff
jne 0x4b9571
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esp + 0x6c], 0
jmp 0x4b95cc
mov esi, dword [esp]
mov cl, 2
mov eax, 0x735f84
jmp 0x4b95ce
cmp dword [esp + 0x1f8], 1
mov cl, 4
jne 0x4b9586
mov eax, dword [esp + 0xbc]
jmp 0x4b95ce
lea ecx, [esp + 0x300]
mov edx, edi
call fcn.00486fd0
test byte [esp + 0x300], 1
je 0x4b95a7
mov ebx, dword [esp + 0x304]
jmp 0x4b95bc
mov ebx, dword [esp + 0x304]
mov eax, dword [esp + 0xbc]
mov cl, 4
cmp bl, 4
je 0x4b95ce
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 0x4b9367
jmp 0x4b995e
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x7c]
lea edx, [esp + 0xd0]
mov dword [esp + 0xd0], 0x75f318
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x1f8], eax
lea eax, [esp + 0x1f8]
mov dword [esp + 0x1fc], 0x498340
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 1
lea ecx, [esi + 0x4c]
call fcn.00412300
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 0x4ba21c
push dword [esp + 0x3c]
jmp 0x4ba20e
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 0x4ba21c
mov ecx, edi
mov edx, esi
call fcn.0043db30
jmp 0x4ba21c
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp dword [esp + 0x44], 0
je 0x4b96de
push dword [esp + 0x3c]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp word [esp + 0x32], 2
jne 0x4b979a
cmp bl, 4
je 0x4ba666
mov dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], edi
xor ecx, ecx
mov edx, 0xd
movzx eax, byte [0x77618d]
call fcn.00490be0
test eax, eax
je 0x4ba666
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.0049bc70
add esp, 4
jmp 0x4ba21c
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 0x4b999b
mov eax, dword [esp + 0x38]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov ecx, dword [eax + 0x50]
cmp ecx, 0x3b9aca00
jne 0x4b9b39
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x20]
cmp ecx, 0x3b9aca00
je 0x4b9876
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 0x4b9872
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4b9f35
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 0x4b9e31
mov bl, 4
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
jne 0x4b9e47
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [eax + 0x30]
cmp ecx, 0x3b9aca00
je 0x4b9919
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 0x4b9915
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, esi
shr edx, 0x12
add eax, edx
mov eax, edi
adc eax, 0
jae 0x4ba0f9
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 0x4b9ebb
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4ba01d
jmp 0x4ba152
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 0x4b96cc
jmp 0x4b96de
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.0049bc70
add esp, 4
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4ba21c
jmp 0x4ba1d7
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, 0x1a
call fcn.00490be0
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
test eax, eax
je 0x4ba666
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.004b0300
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.0049bc70
add esp, 4
test ebx, ebx
je 0x4b9b23
push edi
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
cmp bl, 4
jne 0x4ba1d7
jmp 0x4ba21c
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 0x4ba668
mov edi, dword [esp + 0x300]
mov esi, dword [esp + 0x304]
movq xmm0, qword [0x776178]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
movd ecx, xmm0
mov eax, edx
or eax, ecx
jne 0x4b9c0a
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 0x4ba668
mov edx, dword [esp + 0x300]
mov ecx, dword [esp + 0x304]
movq xmm0, qword [esp + 0x300]
mov eax, edx
movq qword [0x776178], xmm0
or eax, ecx
je 0x4ba666
mov dword [esp + 8], ecx
push ecx
push edx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x20], edx
call fcn.004e21b0
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.004e21b0
mov edi, eax
add edi, dword [esp + 0x1c]
adc edx, esi
push 0
push 0x3b9aca00
push edx
push edi
call fcn.004e21b0
imul ecx, eax, 0x3b9aca00
mov esi, edx
mov edx, eax
sub edi, ecx
lea ecx, [esp + 0xd0]
push edi
push esi
call fcn.00481380
add esp, 8
cmp ecx, 0x3b9aca00
jne 0x4b9d9d
movzx eax, byte [0x77618d]
xor ecx, ecx
mov edx, 0x1a
call fcn.00490be0
test eax, eax
je 0x4ba666
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.004b0300
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 0x4ba1b9
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 0x4b9df1
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 0x4b9f96
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 0x4b9ed3
mov bl, 4
xor ecx, ecx
cmp bl, 4
je 0x4b9ee6
jmp 0x4ba152
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, dword [esp]
xor ecx, ecx
cmp bl, 4
je 0x4b98b1
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.0049bc70
add esp, 4
jmp 0x4ba1c4
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4ba152
jmp 0x4ba01d
xor ebx, ebx
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp bl, 4
jne 0x4ba152
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xd0]
push dword [esp + 0x74]
push dword [esp + 0x30]
call fcn.004bb1b0
add esp, 8
mov edi, dword [esp + 0xd8]
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0xd4]
cmp edi, 0x3b9aca00
jne 0x4b9ff7
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1fc], esi
jmp 0x4ba172
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 0x4b9876
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 0x4b9876
mov ebx, dword [0x735f68]
mov eax, dword [0x735f6c]
mov edi, dword [esp]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4b98b1
jmp 0x4b9e47
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 0x4b9df8
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 0x4b9df8
mov ebx, dword [0x735f68]
mov eax, dword [0x735f6c]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4b9ee6
jmp 0x4ba152
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x300]
push edi
push esi
push eax
call fcn.00487230
add esp, 0xc
movzx eax, byte [esp + 0x300]
cmp al, 4
jne 0x4ba2c5
cmp byte [esp + 0x1e8], 0
mov ecx, dword [esp + 4]
je 0x4ba0c9
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.004bb3a0
cmp dword [esp + 0xb0], 0
je 0x4ba0b8
push dword [esp + 0xb4]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x84]
call fcn.004a2cc0
jmp 0x4ba262
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4ba02f
mov edx, dword [esp + 0x38]
mov edi, dword [edx + 0x18]
mov esi, dword [edx + 0x14]
cmp eax, edi
jae 0x4ba2ed
cmp byte [esi + eax], 0xbf
jg 0x4ba2f3
jmp 0x4ba666
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 0x4b9919
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 0x4b9919
mov ebx, dword [0x735f68]
mov eax, dword [0x735f6c]
mov ecx, ebx
shrd ecx, eax, 8
cmp bl, 4
je 0x4ba01d
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.0049bc70
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 0x4ba21c
cmp bl, 3
jne 0x4ba21c
mov esi, dword [edi]
mov ebx, edi
mov edi, dword [edi + 4]
mov eax, dword [edi]
test eax, eax
je 0x4ba1ef
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4ba20d
cmp dword [edi + 8], 9
jb 0x4ba1fe
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0xb0], 0
je 0x4ba23b
push dword [esp + 0xb4]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x84]
neg eax
jo 0x4ba262
jb 0x4ba26a
test dword [esp + 0x90], 0x7fffffff
jne 0x4ba28c
test dword [esp + 0x9c], 0x7fffffff
jne 0x4ba2ae
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x88]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [esp + 0x90], 0x7fffffff
je 0x4ba255
push dword [esp + 0x94]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test dword [esp + 0x9c], 0x7fffffff
je 0x4ba262
push dword [esp + 0xa0]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ba262
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 0x4ba172
jne 0x4ba666
cmp eax, 5
jne 0x4ba02f
mov eax, 0x70747468
movzx edx, byte [esi + 4]
xor eax, dword [esi]
xor edx, 0x73
or edx, eax
jne 0x4ba02f
mov eax, dword [esp + 0x84]
neg eax
jo 0x4ba02f
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.004bb3f0
add esp, 0x14
lea eax, [esp + 0x300]
mov dword [esp + 0xd0], 0x771614
mov dword [esp + 0xd4], 1
mov dword [esp + 0xe0], 0
mov dword [esp + 0x300], ebx
mov dword [esp + 0x304], 0x4068d0
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.004bab10
add esp, 0xc
cmp byte [esp + 0x3c0], 4
jne 0x4ba666
cmp dword [esp + 0x1f8], 0
je 0x4ba3ea
push dword [esp + 0x1fc]
push 0
push dword [0x776180]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xd0]
call fcn.00487050
movzx eax, byte [esp + 0xd0]
cmp al, 4
jne 0x4ba41d
mov ebx, dword [esp + 0xd4]
cmp edi, 6
jb 0x4ba456
cmp byte [esi + 5], 0xbf
jg 0x4ba45f
jmp 0x4ba666
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 0x4ba172
cmp edi, 5
jne 0x4ba666
lea ecx, [esp + 0x4a4]
mov edx, esi
push dword [ebp + 0x10]
push dword [esp + 0x84]
push dword [esp + 0x84]
push 5
call fcn.004bb6f0
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x5c]
jmp 0x4ba48e
pause
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4ba48c
test eax, eax
js 0x4ba666
lea edx, [eax + 1]
lock cmpxchg dword [ecx + 4], edx
jne 0x4ba491
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.004ba670
add esp, 8
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x3c0]
mov ecx, edi
call fcn.004ab970
lea ecx, [esp + 0xd0]
mov edx, esi
push edi
call fcn.004abc20
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 0x4ba634
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 0x4ba651
mov ebx, dword [esp + 4]
cmp ecx, 0x191
je 0x4ba5e9
mov al, 0xa
cmp ecx, 0x197
jne 0x4ba5eb
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.00404b50
mov edi, dword [esp]
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp bl, 4
je 0x4ba21c
jmp 0x4ba1d7
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 0x4ba1c1
lea ecx, [esp + 0x300]
call fcn.00404b50
mov ecx, dword [esp + 4]
jmp 0x4ba02f
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
ud2