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

Disassembly:
sub esp, 0x2c
mov ecx, dword [esp + 0x30]
push ebp
mov ebp, dword [ecx + 0x1a0]
mov dword [esp + 0x1c], ebp
mov ebp, dword [eax + 0x80]
mov eax, dword [eax + 0x98]
mov dword [esp + 0x18], eax
movzx eax, byte [ecx + 0x198]
and eax, 7
push esi
mov esi, dword [ecx + 0x158]
mov dword [esp + 0x10], ebp
lea ebp, [eax + eax*4]
movsx eax, byte [ebp + 0x61b594]
cmp eax, 3
lea edx, [esi + 0x100]
mov dword [esp + 0x30], edx
mov edx, dword [ecx + 0x1c4]
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], esi
mov edi, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], connect
mov dword [esp + 0x2c], eax
jle 0x4395af
mov eax, dword [ebx + 0xc4]
test eax, eax
je 0x4395af
mov ecx, dword [esp + 0x40]
push esi
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push edx
call eax
mov edx, dword [esp + 0x30]
movsx ebp, byte [ebp + 0x61b593]
mov ecx, dword [ebx + ebp*4 + 0xd0]
mov edi, eax
mov eax, dword [esp + 0x38]
push edx
push eax
push esi
call ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebx + 0xbc]
mov edx, dword [edx]
push eax
push ecx
push 0x10
push esi
call edx
mov ecx, dword [esp + 0x78]
lea eax, [eax + ecx*4]
add esp, 0x38
cmp eax, edi
jge 0x43957f
mov edi, eax
add edi, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], edi
jmp 0x439689
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [ebx + ecx*4 + 0xd0]
push eax
push esi
call edx
add esp, 0xc
add edi, dword [esp + 0x40]
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], edi
jmp 0x439689
cmp dword [esp + 0x2c], 0
movsx eax, byte [ebp + 0x61b590]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0
jle 0x43968d
jmp 0x4395d4
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
movsx esi, byte [ecx + ebp + 0x61b590]
mov ecx, dword [ebx + esi*4 + 0xd0]
push eax
push edx
push edi
call ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0xbc]
mov edx, dword [edx]
push eax
push ecx
push 0x10
push edi
call edx
movsx ecx, byte [esi + 0x61f190]
add esp, 0x1c
cmp ecx, 0x100
jae 0x439622
mov ecx, dword [ecx*4 + 0x61ecb0]
jmp 0x439652
inc ecx
xor edx, edx
test ecx, 0xffff0000
je 0x439635
shr ecx, 0x10
mov edx, 0x10
test ecx, 0xff00
je 0x439643
shr ecx, 8
add edx, 8
mov ecx, dword [ecx*4 + 0x61ecac]
shr ecx, 1
add ecx, edx
lea ecx, [ecx + ecx + 1]
imul ecx, dword [esp + 0x40]
add eax, ecx
cmp eax, dword [esp + 0xc]
jge 0x439676
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
xor eax, 1
mov edi, dword [esp + eax*4 + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jl 0x4395d0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + eax*4 + 0x30]
xor eax, 1
mov eax, dword [esp + eax*4 + 0x30]
pop edi
mov dword [ecx + 0x160], edx
mov dl, byte [esp + 0xc]
pop esi
mov dword [ecx + 0x15c], eax
mov eax, dword [esp + 4]
mov byte [ecx + 0x199], dl
pop ebp
add esp, 0x2c
ret