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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x676388
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x702ca8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
lea ebx, [edi + 0x9c]
push ecx
mov dword [esp + 0x24], ebx
call fcn.0045a020
test eax, eax
mov dword [edi + 0x98], eax
je 0x459543
movzx edx, word [edi + 0x9e]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov esi, dword [edi + 0x98]
movzx eax, ax
push eax
add esi, 0x94
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esi + 2], ax
call fcn.00437500
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0xb8]
cmp ecx, dword [eax + 0xa8]
jle 0x459543
add eax, 0xa4
push eax
mov ecx, edi
call fcn.00436710
mov ebx, dword [edi + 0x98]
call fcn.0046e500
mov edx, dword [edi + 0xd4]
add edx, dword [edi + 0xd0]
cmp dword [edi + 0xd8], edx
jae 0x459543
lea esp, [esp]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea esi, [esp + 0x13]
mov eax, edi
mov byte [esp + 0x13], 0
call fcn.00436d50
movzx eax, byte [esp + 0x13]
sub eax, ebx
je 0x4593e3
sub eax, 1
jne 0x4594d7
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00436710
xor eax, eax
cmp byte [edi + 0x94], bl
mov dword [esp + 0x18], eax
je 0x459263
mov ecx, dword [edi + 0xd8]
mov dword [ecx], eax
jmp 0x45926f
mov edx, dword [edi + 0xd8]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
add dword [edi + 0xd8], 4
mov edx, dword [edi + 0xd4]
mov eax, dword [edi + 0xd8]
mov ecx, dword [esp + 0x14]
add edx, dword [edi + 0xd0]
add eax, ecx
cmp eax, edx
ja 0x459543
push ecx
call fcn.00437550
mov esi, eax
cmp byte [esi + 0x94], bl
je 0x4592b4
mov edx, dword [esi + 0xd8]
sub edx, dword [esi + 0xd4]
jmp 0x4592ba
mov edx, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd4]
call fcn.0048d7b0
cmp dword [esp + 0x18], eax
jne 0x4592df
mov eax, edi
mov edx, dword [eax + 0x98]
mov ecx, esi
call fcn.0046e5d0
jmp 0x4594a7
mov ecx, edi
mov edx, dword [ecx + 0xb8]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00457c70
mov dword [esp + 0x84], ebx
cmp dword [eax + 0x18], 0x10
jb 0x459308
mov eax, dword [eax + 4]
jmp 0x45930b
add eax, 4
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x40
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x6c5460
mov byte [ecx + 4], bl
call fcn.004027b0
lea ecx, [esp + 0x44]
push ecx
call fcn.00488db0
add esp, 0x28
mov byte [esp + 0x80], 1
cmp dword [eax + 0x18], 0x10
jb 0x45934f
mov eax, dword [eax + 4]
jmp 0x459352
add eax, 4
push eax
push 0x6c54a4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 8
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x6ba1c0
mov byte [ecx + 4], bl
call fcn.004027b0
mov edx, dword [0x717c9c]
mov eax, dword [edx + 0x10]
push eax
call fcn.0045bb10
add esp, 0x28
cmp dword [esp + 0x38], 0x10
jb 0x45939c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0060445c
add esp, 4
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x4593c7
mov edx, dword [esp + 0x40]
push edx
call fcn.0060445c
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
jmp 0x4594a7
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x90]
call fcn.0045b650
add dword [eax + 0xa8], 1
lea ecx, [esp + 0x18]
add eax, 0xa8
push ecx
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00436710
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x98]
call fcn.0046e490
mov edi, eax
test edi, edi
je 0x4594a7
mov eax, dword [0x717c9c]
mov esi, dword [eax + 0x30]
call fcn.0044cb50
fsub qword [esi + 0xb8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x98]
fld qword [ecx + 0xb0]
fmul qword [0x6ddcd0]
fadd qword [edi + 0xb0]
fcompp
fnstsw ax
test ah, 5
jp 0x4594a7
mov edx, dword [ecx + 0x94]
mov esi, dword [ebp + 8]
lea eax, [ecx + 0x94]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x90]
push edi
call fcn.0045ab10
mov ebx, dword [esi + 0x90]
call fcn.0045b650
add eax, 0xac
add dword [eax], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xd4]
add ecx, dword [eax + 0xd0]
cmp dword [eax + 0xd8], ecx
jb 0x459210
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x6c54c4
call fcn.00402ee0
lea edx, [esp + 0x74]
push edx
call fcn.00488db0
add esp, 0x20
mov dword [esp + 0x80], 2
cmp dword [eax + 0x18], 0x10
jb 0x45950d
mov eax, dword [eax + 4]
jmp 0x459510
add eax, 4
push eax
push 0x6c54a4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x6ba1c0
call fcn.00402ee0
mov eax, dword [0x717c9c]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.0045bb10
add esp, 0x28
lea ecx, [esp + 0x58]
call fcn.00402590
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc