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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fd758
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
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 0x47161f
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 0x471598
jmp 0x4714b0
mov edx, dword [esi + 8]
cmp edx, dword [esi + 0x10]
jae 0x471598
lea eax, [esp + 0x74]
push eax
mov edx, esi
call fcn.0046c090
test al, al
je 0x4715d1
push 0xb
call fcn.005d2776
add esp, 4
cmp eax, ebx
je 0x4714f1
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 0x4714f3
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.0046caf0
test al, al
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
je 0x471626
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], 0xf
call fcn.004026a0
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.00470de0
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x60], 0x10
jb 0x47156a
mov eax, dword [esp + 0x4c]
push eax
call fcn.005d2367
add esp, 4
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx]
cmp dword [esi + 0xc], eax
ja 0x471581
cmp eax, dword [esi + 0x10]
ja 0x471581
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 0x4714b0
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 0x4715b6
mov edx, dword [esi + 8]
sub edx, dword [esi + 0xc]
mov dword [eax], edx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4716dc
mov ecx, dword [esi + 0x14]
add ecx, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
jmp 0x4716e5
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.00402990
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x471609
mov eax, dword [esp + 0x20]
push eax
call fcn.005d2367
add esp, 4
cmp dword [esp + 0x8c], esi
jb 0x47161f
mov ecx, dword [esp + 0x78]
push ecx
call fcn.005d2367
add esp, 4
xor al, al
jmp 0x471704
push 6
mov esi, 0xf
push str.kv_Log
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], esi
call fcn.00402990
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.004026a0
cmp dword [esp + 0x34], 0x10
jb 0x471678
mov eax, dword [esp + 0x20]
push eax
call fcn.005d2367
add esp, 4
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x471698
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005d2367
add esp, 4
cmp edi, ebx
je 0x4716bd
cmp byte [edi + 0xa], bl
je 0x4716b4
mov eax, dword [edi + 6]
cmp eax, ebx
je 0x4716b4
push eax
call fcn.005d28c2
add esp, 4
mov dword [edi + 6], ebx
push edi
call fcn.005d2367
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x47161f
mov edx, dword [esp + 0x78]
push edx
call fcn.005d2367
add esp, 4
xor al, al
jmp 0x471704
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 0x471702
mov eax, dword [esp + 0x78]
push eax
call fcn.005d2367
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.005d28b3
mov esp, ebp
pop ebp
ret 0xc