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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0x10
mov esi, eax
jb 0x413d68
mov ebx, dword [edi + 4]
jmp 0x413d6b
lea ebx, [edi + 4]
call fcn.00413ce0
mov ebx, dword [esi + 0xc]
lea eax, [ebx + 8]
cmp eax, dword [esi + 8]
jae 0x413da2
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
call fcn.00413c10
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ebx], ecx
add esp, 4
mov dword [ebx + 4], edx
add dword [esi + 0xc], 8
mov eax, dword [esi + 0xc]
add eax, 4
cmp eax, dword [esi + 8]
jae 0x413dc0
mov eax, dword [edi + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
add dword [esi + 0xc], 4
mov ebx, dword [esi + 0xc]
lea edx, [ebx + 8]
cmp edx, dword [esi + 8]
jae 0x413df2
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call fcn.00413c10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
add esp, 4
mov dword [ebx + 4], ecx
add dword [esi + 0xc], 8
mov edx, dword [esi + 0xc]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
add edx, 2
cmp edx, dword [esi + 8]
jae 0x413e17
movzx eax, word [edi + 0x38]
push eax
call ebx
mov ecx, dword [esi + 0xc]
movzx eax, ax
mov word [ecx], ax
add dword [esi + 0xc], 2
mov edx, dword [esi + 0xc]
add edx, 2
cmp edx, dword [esi + 8]
jae 0x413e36
movzx eax, word [edi + 0x3a]
push eax
call ebx
mov ecx, dword [esi + 0xc]
movzx eax, ax
mov word [ecx], ax
add dword [esi + 0xc], 2
mov edx, dword [esi + 0xc]
add edx, 2
cmp edx, dword [esi + 8]
jae 0x413e55
movzx eax, word [edi + 0x3c]
push eax
call ebx
mov ecx, dword [esi + 0xc]
movzx eax, ax
mov word [ecx], ax
add dword [esi + 0xc], 2
mov edx, dword [esi + 0xc]
add edx, 2
cmp edx, dword [esi + 8]
jae 0x413e74
movzx eax, word [edi + 0x3e]
push eax
call ebx
mov ecx, dword [esi + 0xc]
movzx eax, ax
mov word [ecx], ax
add dword [esi + 0xc], 2
mov edx, dword [esi + 0xc]
add edx, 2
cmp edx, dword [esi + 8]
jae 0x413e93
movzx eax, word [edi + 0x40]
push eax
call ebx
mov ecx, dword [esi + 0xc]
movzx eax, ax
mov word [ecx], ax
add dword [esi + 0xc], 2
mov edx, dword [esi + 0xc]
add edx, 2
cmp edx, dword [esi + 8]
jae 0x413eb2
movzx eax, word [edi + 0x42]
push eax
call ebx
mov ecx, dword [esi + 0xc]
movzx eax, ax
mov word [ecx], ax
add dword [esi + 0xc], 2
mov ebx, dword [esi + 0xc]
lea edx, [ebx + 8]
cmp edx, dword [esi + 8]
jae 0x413ee4
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call fcn.00413c10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
add esp, 4
mov dword [ebx + 4], ecx
add dword [esi + 0xc], 8
mov ebx, dword [esi + 0xc]
lea edx, [ebx + 8]
cmp edx, dword [esi + 8]
jae 0x413f16
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call fcn.00413c10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
add esp, 4
mov dword [ebx + 4], ecx
add dword [esi + 0xc], 8
mov ebx, dword [esi + 0xc]
lea edx, [ebx + 8]
cmp edx, dword [esi + 8]
jae 0x413f48
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call fcn.00413c10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
add esp, 4
mov dword [ebx + 4], ecx
add dword [esi + 0xc], 8
cmp dword [edi + 0x78], 0x10
jb 0x413f5f
mov edi, dword [edi + 0x64]
mov ebx, edi
call fcn.00413ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0x64
mov ebx, edi
call fcn.00413ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret