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

Disassembly:
push 0xffffffffffffffff
push 0x447360
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4555b4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x74]
cmp dword [edi + 0x488], eax
mov ebp, dword [esp + 0x7c]
je 0x41e5aa
mov dword [edi + 0x488], eax
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x41e375
call fcn.0042ab0d
mov ebx, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jbe 0x41e382
call fcn.0042ab0d
push esi
push ebp
push ebx
push ebp
lea eax, [esp + 0x2c]
push eax
mov ebx, ebp
call fcn.0041f590
mov ebx, dword [esp + 0x84]
lea ecx, [esp + 0x24]
lea esi, [edi + 0x30]
push ecx
mov dword [esp + 0x1c], 0
call fcn.0041ea60
mov edi, dword [eax]
test edi, edi
mov edx, dword [esi + 4]
mov ebx, dword [eax + 4]
mov dword [esp + 0x20], edx
je 0x41e3c2
cmp edi, esi
je 0x41e3c7
call fcn.0042ab0d
cmp ebx, dword [esp + 0x20]
je 0x41e3e7
test edi, edi
jne 0x41e3d6
call fcn.0042ab0d
cmp ebx, dword [edi + 4]
jne 0x41e3e0
call fcn.0042ab0d
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x80]
mov esi, ebp
call fcn.0041eb00
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x41e406
lea ebx, [esp + 0x18]
call fcn.0041eb00
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x6c], edi
mov eax, dword [ecx + 0x10]
cmp eax, edi
je 0x41e59f
movzx ecx, word [ecx + 0x14]
add ecx, eax
lea esi, [eax + 2]
cmp esi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
ja 0x41e59f
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
xor edi, edi
mov ebp, esi
movzx ebx, ax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x6c], 1
mov eax, dword [esp + 0x80]
lea esi, [esp + 0x44]
call fcn.0041b4f0
push eax
lea esi, [esp + 0x38]
mov byte [esp + 0x70], 2
call fcn.0041edf0
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x5c], 0x10
jb 0x41e4a4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00429c36
add esp, 4
movzx eax, bx
test eax, eax
jle 0x41e555
mov dword [esp + 0x78], eax
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x2c]
ja 0x41e4ce
mov eax, dword [ebp]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebp, esi
mov edi, eax
mov dword [esp + 0x30], ebp
push edi
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, eax
cmp edi, dword [esp + 0x80]
mov dword [esp + 0x1c], edi
je 0x41e54a
lea esi, [esp + 0x44]
call fcn.0041b4f0
push eax
lea esi, [esp + 0x38]
mov byte [esp + 0x70], 3
call fcn.0041edf0
mov ebx, 0x10
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x5c], ebx
jb 0x41e519
mov edx, dword [esp + 0x48]
push edx
call fcn.00429c36
add esp, 4
mov eax, edi
lea esi, [esp + 0x44]
call fcn.0041b4f0
cmp dword [esp + 0x5c], ebx
jb 0x41e537
mov eax, dword [esp + 0x48]
push eax
call fcn.00429c36
add esp, 4
cmp edi, dword [esp + 0x18]
je 0x41e54a
mov esi, dword [esp + 0x7c]
lea ebx, [esp + 0x1c]
call fcn.0041eb00
sub dword [esp + 0x78], 1
jne 0x41e4b3
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x78]
add ecx, 0x24
call fcn.0041e7b0
push eax
lea eax, [esp + 0x38]
call fcn.0041ebf0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41e599
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x3c]
push edx
call fcn.004222a0
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
call fcn.00429c36
add esp, 4
mov ebp, dword [esp + 0x7c]
xor edi, edi
push edi
call fcn.00429fae
add esp, 4
jmp 0x41e5ac
xor edi, edi
mov ecx, dword [ebp + 4]
cmp ecx, edi
jne 0x41e5b7
xor eax, eax
jmp 0x41e5bf
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14