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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1c8
mov esi, esp
mov dword [esi + 0x1b0], ebp
mov dword [esi + 0x1b4], esp
mov dword [esi + 0x1c0], 0xffffffff
mov dword [esi + 0x1bc], 0x47e9c0
mov edi, dword [ebp + 0x14]
lea eax, [esi + 0x1b8]
mov edx, dword [ebp + 0xc]
mov ecx, dword fs:[0]
mov dword [esi + 0x1b8], ecx
mov dword fs:[0], eax
mov eax, connect
xor eax, dword [edi]
cmp eax, 4
setb cl
cmp eax, 1
setne al
test cl, al
lea ecx, [edi + 0xc]
mov dword [esi + 0x1c], ecx
jne 0x478cc0
cmp dword [edi + 0xc], reloc.WS2_32.dll_getsockname
jne 0x478cc0
mov ebx, dword [edi + 4]
mov edi, dword [edi + 8]
mov eax, dword [edx + 0xcc]
mov ecx, dword [edx + 0xd0]
mov byte [esi + 6], 1
mov dword [esi + 0x1c0], 3
mov dword [esi + 0xc], edi
push edi
mov dword [esi + 0x14], ebx
push ebx
push eax
call dword [ecx + 0x18]
add esp, 0xc
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + 0xb8]
mov dword [esi + 0x18], eax
mov eax, dword [eax]
cmp eax, 0x80000000
je 0x478c3c
mov edi, dword [ebx + 0xc0]
mov ecx, dword [esi + 0xc]
sub eax, edi
cmp eax, ecx
jae 0x478c1e
mov byte [esi + 6], 1
push ecx
push edi
push dword [esi + 0x18]
call fcn.004fda90
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
mov edi, dword [ebx + 0xc0]
mov eax, dword [ebx + 0xbc]
add eax, edi
push ecx
push dword [esi + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add edi, dword [esi + 0xc]
mov dword [ebx + 0xc0], edi
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x10], 0x80000000
jne 0x478d38
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov byte [esi + 6], 1
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x78]
push eax
push ecx
call fcn.0046e270
add esp, 8
mov eax, dword [esi + 0x58]
cmp eax, dword [esi + 0x54]
jae 0x478d2a
mov eax, dword [esi + 0x78]
cmp eax, 0x80000000
je 0x478d38
test eax, eax
je 0x478c9f
push 1
push eax
push dword [esi + 0x7c]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x478d38
push 1
push eax
push dword [esi + 0x90]
call fcn.00402cf0
add esp, 0xc
jmp 0x478d38
mov byte [esi + 6], 1
mov dword [esi + 0x1c0], 3
lea eax, [esi + 0x78]
push 1
push 0x5250ec
push 1
push 0x525054
push edi
push eax
call fcn.004560a0
add esp, 0x18
movzx eax, word [esi + 0x79]
movzx ecx, byte [esi + 0x7b]
mov edx, dword [esi + 0x7c]
mov edi, dword [esi + 0x84]
mov byte [esi + 0x12], cl
mov word [esi + 0x10], ax
movzx eax, byte [esi + 0x78]
mov ecx, dword [ebp + 8]
movzx ebx, byte [esi + 0x12]
mov byte [ecx], al
movzx eax, word [esi + 0x10]
mov byte [ecx + 3], bl
mov word [ecx + 1], ax
mov dword [ecx + 4], edx
mov edx, dword [esi + 0x80]
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edx
jmp 0x478d89
mov eax, dword [esi + 0x78]
cmp eax, 0x80000000
jne 0x478e32
mov eax, dword [ebp + 0x10]
mov word [esi + 0xf4], 4
mov dword [esi + 0x78], connect
mov dword [esi + 0x7c], 0x100001
lea ecx, [esi + 0x78]
mov edx, dword [eax]
xor eax, eax
cmp byte [edx + 0x29], 2
mov byte [esi + 6], 1
sete al
push eax
push ecx
mov dword [esi + 0xc], edx
push edx
call fcn.00449a50
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + 0x249], 1
mov byte [ecx], 2
mov dword [ecx + 4], 0xc
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, 1
mov ebx, dword [edx]
lea ecx, [ebx - 0x80000000]
cmp ecx, 4
cmovb eax, ecx
test eax, eax
je 0x478dd2
cmp eax, 1
je 0x478e0e
cmp eax, 2
je 0x478dd2
mov eax, dword [edx + 4]
add edx, 4
test eax, eax
je 0x478dd2
push 1
push eax
push dword [edx + 4]
call fcn.00402cf0
add esp, 0xc
mov dword [esi + 0x1c0], 7
mov dword [esi + 0x1c0], 7
push edi
call fcn.00473dd0
add esp, 4
push 8
push 0x118
push dword [ebp + 0xc]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [esi + 0x1b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c0], 2
call fcn.0043a700
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x478dba
jmp 0x478dd2
movzx ecx, word [esi + 0x7d]
movzx edx, byte [esi + 0x7f]
movsd xmm0, qword [esi + 0x8c]
movsd xmm1, qword [esi + 0x94]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], 0
mov byte [esi + 7], 1
mov byte [esi + 8], 1
mov dword [esi + 0x1c0], 4
mov word [esi + 0x31], cx
movzx ecx, byte [esi + 0x7c]
mov byte [esi + 0x33], dl
movsd qword [esi + 0x40], xmm0
movsd qword [esi + 0x48], xmm1
mov byte [esi + 0x30], cl
mov ecx, dword [esi + 0x80]
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x88]
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x20]
lea ecx, [esi + 0x2c]
push eax
push ecx
call fcn.0046dfb0
add esp, 8
lea eax, [esi + 0x40]
mov ecx, dword [esi + 0x28]
movsd xmm0, qword [esi + 0x20]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [0x578064]
mov dword [esi + 0x58], ecx
movsd qword [esi + 0x50], xmm0
xor ecx, ecx
movsd qword [esi + 0x5c], xmm2
movsd qword [esi + 0x64], xmm1
mov eax, dword [eax]
cmp eax, 4
mov eax, 0xff
setne cl
cmovbe eax, ecx
cmp al, 0xff
je 0x478eff
movzx eax, al
test eax, eax
jne 0x478f66
lea eax, [esi + 0x38]
mov dword [esi + 0x78], 0x5250c8
mov dword [esi + 0x7c], 1
mov dword [esi + 0x88], 0
mov byte [esi + 9], 0
mov byte [esi + 0xa], 1
mov dword [esi + 0x1c0], 5
mov dword [esi + 0x70], eax
lea eax, [esi + 0x70]
mov dword [esi + 0x74], 0x47e790
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 1
sub esp, 4
push 0
push 0x18c
push 0x52509c
push 4
lea eax, [esi + 0x78]
push eax
call fcn.004adac0
add esp, 0x18
mov ebx, dword [ebp + 0xc]
lea ecx, [esi + 0x90]
lea eax, [ebx + 0x18]
push 0x60
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [ebx + 0x100]
mov eax, dword [ebx + 0x110]
movsd xmm0, qword [ebx + 0x108]
movsd xmm2, qword [ebx + 0xf0]
movsd xmm3, qword [ebx + 0xd4]
mov ecx, dword [esi + 0x18]
movsd qword [esi + 0x194], xmm1
movsd xmm1, qword [ebx + 0xf8]
mov dword [esi + 0x1a4], eax
movsd qword [esi + 0x184], xmm2
movsd qword [esi + 0x19c], xmm0
mov eax, dword [ebx + 0xe4]
movsd xmm2, qword [ebx + 0xa8]
movsd qword [esi + 0x18c], xmm1
movsd xmm1, qword [ebx + 0xdc]
mov dword [esi + 0x178], eax
movsd qword [esi + 0x168], xmm3
movsd xmm3, qword [ecx]
movzx eax, byte [ebx + 0x114]
movsd qword [esi + 0x170], xmm1
movsd xmm1, qword [ebx + 0xb0]
movsd qword [esi + 0x120], xmm2
movsd xmm2, qword [ebx + 0xa0]
movsd qword [esi + 0x128], xmm1
movsd xmm1, qword [ebx + 0x98]
movsd qword [esi + 0x118], xmm2
movsd xmm2, qword [ebx + 0x90]
movsd qword [esi + 0x110], xmm1
movsd xmm1, qword [ebx + 0x88]
movsd qword [esi + 0x108], xmm2
movsd xmm2, qword [ebx + 0x78]
movsd qword [esi + 0x100], xmm1
movsd xmm1, qword [ebx + 0x80]
movsd qword [esi + 0xf0], xmm2
movsd xmm2, qword [ebx]
movsd qword [esi + 0xf8], xmm1
movsd xmm1, qword [ecx + 0x10]
movsd qword [esi + 0x14c], xmm3
movsd xmm3, qword [esi + 0x50]
movsd qword [esi + 0x15c], xmm1
movsd xmm1, qword [ecx + 8]
mov ecx, dword [ecx + 0x18]
movsd qword [esi + 0x154], xmm1
movsd xmm1, qword [ebx + 8]
mov dword [esi + 0x164], ecx
mov ecx, dword [esi + 0x68]
movsd qword [esi + 0x78], xmm2
movsd xmm2, qword [esi + 0x60]
movsd qword [esi + 0x80], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esi + 0x88], xmm1
movsd xmm1, qword [esi + 0x58]
mov dword [esi + 0x148], ecx
movzx ecx, byte [ebx + 0x115]
movsd qword [esi + 0x130], xmm3
movsd qword [esi + 0x140], xmm2
movsd qword [esi + 0x138], xmm1
movsd xmm1, qword [ebx + 0xe8]
mov byte [esi + 0x1a8], al
movsd qword [esi + 0x17c], xmm1
mov byte [esi + 0x1a9], cl
movzx eax, byte [0x5781b1]
push 8
push 0x138
call fcn.00402ce0
add esp, 8
test eax, eax
je 0x4791e4
mov edi, eax
push 0x138
lea eax, [esi + 0x78]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov dword [eax + 8], 0x5250d0
mov byte [eax], 0x14
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x479179
push 1
push eax
push dword [esi + 0x30]
call fcn.00402cf0
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov eax, 1
mov edi, dword [edx]
lea ecx, [edi - 0x80000000]
cmp ecx, 4
cmovb eax, ecx
test eax, eax
je 0x4791d7
lea ecx, [edx + 4]
cmp eax, 1
je 0x4791a4
cmp eax, 2
je 0x4791d7
mov eax, dword [ecx]
jmp 0x4791c5
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c0], 1
call fcn.0043a700
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4791d7
push 1
push eax
push dword [ecx + 4]
call fcn.00402cf0
add esp, 0xc
push 8
push 0x118
push ebx
jmp 0x478def
mov dword [esi + 0x1c0], 6
push 0x138
push 8
call fcn.00500210
add esp, 8
ud2