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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1c58
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ecx, esi
call edx
xor ebx, ebx
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0xa0], ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
sub ecx, eax
cmp ecx, 4
mov dword [esp + 0x18], ebx
jb 0x459ddf
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
add dword [esi + 8], 4
cmp eax, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], ebx
jbe 0x459d58
jmp 0x459c70
mov edx, dword [esi + 8]
cmp edx, dword [esi + 0x10]
jae 0x459d58
lea eax, [esp + 0x74]
push eax
mov edx, esi
call fcn.004548d0
test al, al
je 0x459d91
push 0xb
call fcn.00578e5f
add esp, 4
cmp eax, ebx
je 0x459cb1
mov byte [eax], bl
mov byte [eax + 1], 1
mov dword [eax + 2], ebx
mov dword [eax + 6], ebx
mov byte [eax + 0xa], bl
mov edi, eax
jmp 0x459cb3
xor edi, edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x18]
push edx
sub ecx, eax
mov edx, edi
call fcn.00455330
test al, al
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
je 0x459de6
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], 0xf
call fcn.00405c60
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esi + 0x18]
push edx
lea ebx, [esp + 0x70]
mov byte [esp + 0xa8], 2
call fcn.0045a610
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x60], 0x10
jb 0x459d2a
mov eax, dword [esp + 0x4c]
push eax
call fcn.00578327
add esp, 4
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx]
cmp dword [esi + 0xc], eax
ja 0x459d41
cmp eax, dword [esi + 0x10]
ja 0x459d41
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
add eax, 1
xor ebx, ebx
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jb 0x459c70
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx]
lea eax, [esi + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esi + 0x28], ecx
je 0x459d76
mov edx, dword [esi + 8]
sub edx, dword [esi + 0xc]
mov dword [eax], edx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x459e9c
mov ecx, dword [esi + 0x14]
add ecx, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
jmp 0x459ea5
push 6
push str.kv_Log
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00405f50
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x459dc9
mov eax, dword [esp + 0x20]
push eax
call fcn.00578327
add esp, 4
cmp dword [esp + 0x8c], esi
jb 0x459ddf
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00578327
add esp, 4
xor al, al
jmp 0x459ec4
push 6
mov esi, 0xf
push str.kv_Log
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
call fcn.00405f50
push 0xffffffffffffffff
mov byte [esp + 0xa4], 1
push ebx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00405c60
cmp dword [esp + 0x34], 0x10
jb 0x459e38
mov eax, dword [esp + 0x20]
push eax
call fcn.00578327
add esp, 4
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x459e58
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00578327
add esp, 4
cmp edi, ebx
je 0x459e7d
cmp byte [edi + 0xa], bl
je 0x459e74
mov eax, dword [edi + 6]
cmp eax, ebx
je 0x459e74
push eax
call fcn.0057832c
add esp, 4
mov dword [edi + 6], ebx
push edi
call fcn.00578327
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x459ddf
mov edx, dword [esp + 0x78]
push edx
call fcn.00578327
add esp, 4
xor al, al
jmp 0x459ec4
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp dword [esp + 0x8c], 0x10
mov edx, dword [esi + 0xc]
mov dword [esi + 8], edx
jb 0x459ec2
mov eax, dword [esp + 0x78]
push eax
call fcn.00578327
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 0xc