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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x601e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
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 + 0x38], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov ecx, esi
call edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov ebx, 4
cmp ecx, ebx
jb 0x46d54b
mov eax, dword [eax]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call edi
add dword [esi + 8], ebx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
sub edx, eax
cmp edx, ebx
jb 0x46d54b
mov eax, dword [eax]
push eax
call edi
add dword [esi + 8], ebx
xor edi, edi
mov dword [esi + 0x1c], eax
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
cmp eax, edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x10], edi
jbe 0x46d4ac
jmp 0x46d3e0
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0x10]
jae 0x46d4ac
push 6
call fcn.005d2776
add esp, 4
cmp eax, edi
je 0x46d406
xor ecx, ecx
mov dword [eax], ecx
mov word [eax + 4], cx
mov ebx, eax
jmp 0x46d408
xor ebx, ebx
lea ecx, [esp + 0x4c]
push ecx
mov edx, esi
call fcn.0046c090
test al, al
je 0x46d4ff
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
sub edx, eax
cmp edx, 6
jb 0x46d552
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dx, word [eax + 4]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x54]
mov word [ebx + 4], dx
add dword [esi + 8], 6
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
call fcn.004026a0
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0x30]
push edx
lea ebx, [esp + 0x48]
mov byte [esp + 0x80], 1
call fcn.00470de0
mov byte [esp + 0x78], 0
cmp dword [esp + 0x2c], 0x10
jb 0x46d496
mov eax, dword [esp + 0x18]
push eax
call fcn.005d2367
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 1
xor edi, edi
cmp eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
jb 0x46d3e0
cmp dword [esi + 0x18], edi
mov dword [esp + 0x10], edi
jbe 0x46d63e
lea esp, [esp]
mov edx, dword [esi + 8]
cmp edx, dword [esi + 0x10]
jae 0x46d63e
push 0x34
call fcn.005d2776
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
cmp ebx, edi
mov byte [esp + 0x78], 2
je 0x46d592
lea ecx, [ebx + 8]
lea eax, [esi + 0x30]
push ecx
mov dword [ebx], eax
mov dword [ebx + 4], edi
call fcn.00470890
jmp 0x46d594
push 6
push str.kv_Log
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.00402990
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x46d538
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005d2367
add esp, 4
cmp dword [esp + 0x64], esi
jb 0x46d54b
mov edx, dword [esp + 0x50]
push edx
call fcn.005d2367
add esp, 4
xor al, al
jmp 0x46d6af
push str.kv_Log
lea ecx, [esp + 0x18]
call fcn.00401ca0
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x46d578
mov eax, dword [esp + 0x18]
push eax
call fcn.005d2367
add esp, 4
cmp dword [esp + 0x64], esi
jb 0x46d54b
mov ecx, dword [esp + 0x50]
push ecx
call fcn.005d2367
add esp, 4
xor al, al
jmp 0x46d6af
xor ebx, ebx
mov byte [esp + 0x78], 0
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x3c], ebx
mov edi, dword [ebx + 8]
lea ecx, [ebx + 8]
sub eax, edx
lea ebx, [esp + 0x34]
push ebx
push eax
push edx
mov edx, dword [edi + 0x18]
call edx
test al, al
je 0x46d680
mov ecx, dword [esi + 0x24]
test ecx, ecx
lea ebx, [esi + 0x20]
jne 0x46d5cc
xor edx, edx
jmp 0x46d5d4
mov edx, dword [ebx + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x46d5f4
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x46d5f4
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 0x3c]
mov dword [eax], ecx
add eax, 4
mov dword [ebx + 8], eax
jmp 0x46d612
mov edi, dword [ebx + 8]
cmp ecx, edi
jbe 0x46d600
call fcn.005d29f1
push edi
push ebx
lea eax, [esi + 0x3c]
push eax
lea edx, [esp + 0x4c]
push edx
mov eax, ebx
call fcn.00471c90
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x34]
add eax, ecx
cmp dword [esi + 0xc], eax
ja 0x46d628
cmp eax, dword [esi + 0x10]
ja 0x46d628
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
add eax, 1
xor edi, edi
cmp eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
jb 0x46d4c0
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
lea ebx, [esi + 0x20]
mov dword [esp + 0x10], eax
jbe 0x46d656
call fcn.005d29f1
mov eax, dword [esp + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x38]
cmp eax, edi
mov dword [esi + 0x40], ebx
je 0x46d66c
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 4]
cmp eax, edi
je 0x46d68a
mov edx, dword [esi + 0x14]
add edx, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
jmp 0x46d693
cmp dword [esp + 0x64], 0x10
jmp 0x46d53c
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
cmp dword [esp + 0x64], 0x10
mov eax, dword [esi + 0xc]
mov dword [esi + 8], eax
jb 0x46d6ad
mov ecx, dword [esp + 0x50]
push ecx
call fcn.005d2367
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret 0xc