Function at 0x46bbf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
call 0x46bc0b
pop ecx
mov dword [esp + 0xa0], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xa8], 0
mov dword [esp + 0xc], ecx
mov edi, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x68], esi
shl esi, 4
lea ebx, [edi + 0xe]
mov dword [esp + 0x64], edi
jmp 0x46bc6d
test esi, esi
je 0x46bd76
cmp dword [edi], reloc.WS2_32.dll_accept
mov dx, 0x17
jne 0x46bca0
movzx eax, dx
mov eax, dword [eax*4 + 0x46c4b4]
add eax, dword [esp + 0xc]
jmp eax
movzx edx, word [edi + 0xc]
movzx eax, dx
mov eax, dword [eax*4 + 0x46c4b4]
add eax, dword [esp + 0xc]
jmp eax
lea ecx, [esp + 0xa0]
call fcn.0045d6c0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x168]
mov eax, dword [esi + 0x18]
push dword [esi + 0x14]
push ecx
call dword [eax + 0xc]
add esp, 8
mov ebx, dword [esp + 0x1a8]
cmp ebx, 0x41
jae 0x46c4b1
mov eax, dword [ebp + 0xc]
mov edi, dword [esi + 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
push edi
call dword [eax + 0x14]
add esp, 4
rol ax, 8
mov byte [esp + 6], 0x10
mov byte [esp + 7], bl
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], eax
lea eax, [esp + 6]
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], eax
lea eax, [esp + 7]
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x5e2908
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0x5e2821
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x48], eax
lea eax, [esp + 0x168]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x54], ebx
push 6
push eax
push edi
lea edi, [esp + 0xac]
push edi
call dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0xc]
push edi
push dword [eax + 8]
call dword [ecx + 0x18]
add esp, 8
mov edi, dword [edx + 0x10]
mov esi, eax
mov ebx, edx
push eax
call dword [edx + 0x14]
add esp, 4
rol ax, 8
mov byte [esp + 6], 0x10
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], eax
lea eax, [esp + 6]
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], eax
lea eax, [esp + 7]
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x5e2908
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0x5e28f6
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
mov byte [esp + 7], al
mov dword [esp + 0x54], eax
lea eax, [esp + 0x124]
push 6
lea ecx, [esp + 0x2c]
push ecx
push esi
push eax
call edi
add esp, 0x10
mov eax, dword [ebx]
test eax, eax
je 0x46bf08
push esi
call eax
add esp, 4
cmp dword [ebx + 4], 0
mov edi, dword [esp + 0x14]
je 0x46bf2a
cmp dword [ebx + 8], 9
jb 0x46bf1b
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0xa0]
call fcn.00435910
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 0x94]
mov eax, dword [eax + 0x98]
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [ecx + edx + 8]
lea edx, [esp + 0x90]
push ecx
push edx
call dword [eax + 0x18]
add esp, 8
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x98]
mov byte [esp + 0xa0], 0xe
test eax, eax
je 0x46c147
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0xa0]
call fcn.00438600
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
lock inc dword [eax]
jle 0x46c4b1
mov ecx, dword [esp + 0x164]
mov esi, dword [ebp + 8]
cmp ecx, 0x41
mov dword [esp + 0x20], ecx
jae 0x46c4b1
xor edi, edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0x84], ebx
cmp edi, dword [esi + 0x220]
jo 0x46c157
mov eax, dword [esi + 0x228]
mov ecx, 0xc
mov dword [esp + 0x1c], eax
mul ecx
jo 0x46c4b1
cmp eax, 0x7ffffffd
jae 0x46c4b1
test eax, eax
je 0x46c157
mov ebx, dword [esi + 0x224]
movzx ecx, byte [0x62314d]
mov edx, eax
xor edi, edi
mov dword [esp + 0x24], eax
xor ecx, ecx
call fcn.0048bb80
test eax, eax
je 0x46c4b1
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
test edx, edx
je 0x46c157
xor edi, edi
jmp 0x46c0d6
mov dword [esp + 8], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 8]
dec edx
add ebx, 0xc
mov dword [eax + edi + 4], ecx
mov dword [eax + edi + 8], esi
add edi, 0xc
test edx, edx
je 0x46c153
cmp dword [esp + 0x24], edi
je 0x46c153
xor ecx, ecx
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [esp + 0xc], edx
cmp ecx, dword [ebx]
mov ecx, connect
jo 0x46c0b0
test esi, esi
js 0x46c4b1
mov edx, esi
mov esi, eax
je 0x46c122
movzx eax, byte [0x62314d]
mov dword [esp + 8], edx
xor ecx, ecx
mov edx, dword [esp + 8]
call fcn.0048bb80
mov edx, dword [esp + 8]
test eax, eax
jne 0x46c127
jmp 0x46c4b1
mov eax, 1
mov dword [esp + 8], eax
push edx
push esi
push eax
mov esi, edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, esi
jmp 0x46c0bc
mov eax, dword [esp + 0x18]
mov byte [eax], 0xe
jmp 0x46c470
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], edi
xor edi, edi
mov ecx, dword [eax + 0x1c]
mov ebx, dword [eax + 0x20]
mov eax, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x64]
shl eax, 4
nop dword [eax]
test eax, eax
je 0x46c199
cmp dword [ecx], reloc.WS2_32.dll_accept
je 0x46c1b8
add eax, 0xfffffff0
cmp word [ecx + 0xc], 0x17
lea ecx, [ecx + 0x10]
jne 0x46c180
test esi, esi
je 0x46c1bf
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, esi
call fcn.0048bb80
mov ecx, eax
test eax, eax
jne 0x46c1c4
jmp 0x46c4b1
mov edi, dword [ecx + 4]
test esi, esi
jne 0x46c19d
mov ecx, 1
mov dword [esp + 0x24], ebx
push esi
lea eax, [esp + 0x128]
push eax
mov dword [esp + 0x28], ecx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, 0x14
call fcn.0048bb80
test eax, eax
je 0x46c4b1
mov edx, dword [esp + 8]
mov ecx, 0x93a80
mov ebx, dword [esp + 0xc]
mov dword [eax], 1
mov dword [eax + 4], 1
cmp edx, 0x93a80
mov dword [eax + 8], ebx
cmovb ecx, edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x88]
mov dword [eax + 0x10], ebx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x14]
cmp byte [edx + 0x24c], 1
jne 0x46c333
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
shl esi, 4
test esi, esi
je 0x46c2d8
cmp dword [eax], reloc.WS2_32.dll_accept
je 0x46c2cb
add esi, 0xfffffff0
cmp word [eax + 0xc], 0x17
lea eax, [eax + 0x10]
jne 0x46c2b0
jmp 0x46c2d8
mov eax, dword [eax + 4]
inc eax
cmp eax, 1
ja 0x46c484
xor eax, eax
cmp eax, dword [edx + 0xc0]
jo 0x46c333
mov esi, dword [edx + 0xc8]
test esi, esi
js 0x46c4b1
mov ebx, dword [edx + 0xc4]
je 0x46c313
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, esi
call fcn.0048bb80
mov edi, eax
test eax, eax
jne 0x46c318
jmp 0x46c4b1
mov edi, 1
push esi
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
mov esi, dword [ecx + 0x38]
mov edi, dword [ecx + 0x34]
cmp byte [ecx + 0x1c], 0
mov ebx, dword [esi + 8]
je 0x46c368
movzx eax, byte [ecx + 0x2d]
movsd xmm0, qword [ecx + 0x1d]
movsd xmm1, qword [ecx + 0x25]
mov cl, 1
lea edx, [esp + 0x6c]
mov byte [esp + 0x7d], al
movsd qword [esp + 0x75], xmm1
movsd qword [esp + 0x6d], xmm0
jmp 0x46c3e4
xor eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
cmp eax, dword [ecx + 0x20]
jno 0x46c384
mov edi, dword [ecx + 0x24]
mov eax, dword [ecx + 0x28]
mov esi, connect
jmp 0x46c3ca
mov esi, dword [ecx + 0x28]
test esi, esi
js 0x46c4b1
mov eax, dword [ecx + 0x24]
je 0x46c3b8
mov dword [esp + 8], eax
xor ecx, ecx
mov edx, esi
movzx eax, byte [0x62314d]
call fcn.0048bb80
test eax, eax
je 0x46c4b1
mov edi, eax
mov eax, dword [esp + 8]
jmp 0x46c3bd
mov edi, 1
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x6c]
xor ecx, ecx
mov dword [esp + 0x78], eax
movsd xmm2, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x48]
movsd xmm0, qword [esp + 0x58]
dec ebx
mov byte [esp + 0x6c], cl
lea ecx, [esp + 0xa0]
and ebx, 0xfffffff8
lea eax, [edi + ebx + 8]
movsd qword [esp + 0xc8], xmm2
movsd qword [esp + 0xc0], xmm1
movsd xmm2, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x38]
movsd qword [esp + 0xd0], xmm0
movsd qword [esp + 0xb8], xmm2
movsd qword [esp + 0xb0], xmm1
movsd xmm2, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x30]
movsd qword [esp + 0xa8], xmm1
movsd qword [esp + 0xa0], xmm2
push ecx
push edx
push eax
call dword [esi + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov byte [eax], 0x16
lea ecx, [esp + 0x124]
call fcn.00435910
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov word [eax], 0x1909
call fcn.00454890
cmp dword [esp + 0x48], 0
je 0x46c470
push dword [esp + 0x4c]
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46c470
ud2