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

Disassembly:
mov eax, 0x6739da
call fcn.006313fc
sub esp, 0x50
push ebx
mov ebx, ecx
cmp byte [ebx + 0x48], 5
jne 0x4ea130
xor al, al
jmp 0x4ea43e
push ebp
push esi
push edi
call fcn.004b722c
mov ebp, dword [esp + 0x74]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
test al, al
je 0x4ea19c
cmp byte [ebx + 0x48], 3
jne 0x4ea19c
lea ecx, [ebx + 4]
call fcn.004640b5
test al, al
mov eax, dword [esp + 0x7c]
je 0x4ea1a0
movzx ecx, word [ebx + 0x14]
movzx eax, word [eax + 0x10]
cmp cx, ax
jne 0x4ea19c
push dword [ebp]
call edi
cmp eax, 3
je 0x4ea17c
push dword [ebp]
call edi
test eax, eax
jne 0x4ea19c
push dword [ebp + 4]
call edi
cmp eax, dword [ebx + 0x3c]
mov eax, dword [esp + 0x7c]
jne 0x4ea1a0
push 5
pop ecx
mov esi, eax
lea edi, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
jmp 0x4ea1a0
mov eax, dword [esp + 0x7c]
lea ecx, [ebx + 4]
push eax
call fcn.004c6210
test al, al
je 0x4ea385
push dword [ebp]
call edi
cmp eax, 3
jne 0x4ea1ed
cmp byte [ebx + 0x48], al
jne 0x4ea1ed
push dword [esp + 0x78]
lea ecx, [esp + 0x18]
push ebp
call fcn.004e869d
and dword [esp + 0x68], 0
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.004e922e
lea ecx, [esp + 0x14]
call fcn.004e8baf
jmp 0x4ea439
push dword [ebp]
call edi
test eax, eax
je 0x4ea37b
dec eax
cmp eax, 2
ja 0x4ea385
xor ecx, ecx
mov dword [esp + 0x74], ecx
cmp dword [ebx + 0x59], ecx
jbe 0x4ea385
lea eax, [ebx + 0x49]
push ecx
mov ecx, eax
call fcn.0041f637
push dword [ebp]
mov esi, dword [eax]
mov dword [esp + 0x80], esi
call edi
cmp eax, 3
je 0x4ea23e
push dword [ebp]
call edi
movzx ecx, byte [esi + 4]
cmp ecx, eax
jne 0x4ea24a
push dword [ebp + 4]
mov esi, dword [esi + 0x42]
call edi
cmp esi, eax
je 0x4ea260
mov ecx, dword [esp + 0x74]
lea eax, [ebx + 0x49]
inc ecx
mov dword [esp + 0x74], ecx
cmp ecx, dword [ebx + 0x59]
jb 0x4ea216
jmp 0x4ea385
push dword [ebp]
call edi
cmp eax, 1
jne 0x4ea2ab
cmp dword [esp + 0x78], 0x14
jb 0x4ea385
push dword [esp + 0x78]
lea ecx, [esp + 0x18]
push ebp
call fcn.004e8480
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x70], 1
call dword [edi + 0x1d]
or dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004e8ad1
jmp 0x4ea331
push dword [ebp]
call edi
push 2
pop esi
cmp eax, esi
jne 0x4ea2f5
cmp dword [esp + 0x78], 0x14
jb 0x4ea385
push dword [esp + 0x78]
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push ebp
push edi
call fcn.004e8990
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x6c], esi
push eax
call dword [edi + 0x1d]
or dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004e8d29
jmp 0x4ea331
cmp dword [esp + 0x78], 8
jb 0x4ea385
push dword [esp + 0x78]
lea ecx, [esp + 0x40]
push ebp
call fcn.004e869d
mov edi, dword [esp + 0x7c]
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x70], 3
call dword [edi + 0x1d]
or dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.004e8baf
mov eax, dword [ebx + 0x59]
lea ebp, [ebx + 0x49]
cmp eax, 1
jbe 0x4ea356
dec eax
mov ecx, ebp
push eax
call fcn.0041f637
push dword [esp + 0x74]
mov ecx, ebp
mov esi, eax
call fcn.0041f637
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebx + 0x59]
mov ecx, ebp
dec eax
push eax
call fcn.0041f637
and dword [eax], 0
dec dword [ebp + 0x10]
jne 0x4ea36e
and dword [ebp + 0xc], 0
mov edx, dword [edi]
mov ecx, edi
push 1
call dword [edx]
jmp 0x4ea439
push dword [ebp + 4]
call edi
cmp eax, dword [ebx + 0x3c]
je 0x4ea38c
xor al, al
jmp 0x4ea43b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e8e6d
push 0
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
call fcn.004919d8
mov esi, dword [0x768d0c]
mov edi, eax
mov ebp, edx
mov ecx, dword [esi]
mov dword [esp + 0x7c], ecx
jmp 0x4ea3ed
cmp dword [ecx + 0x28], ebp
jg 0x4ea3e0
jl 0x4ea3c2
cmp dword [ecx + 0x24], edi
jae 0x4ea3e0
push ecx
lea eax, [esp + 0x14]
mov ecx, 0x768d0c
push eax
call fcn.004e9841
mov esi, dword [0x768d0c]
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
jmp 0x4ea3ed
lea ecx, [esp + 0x7c]
call fcn.0045d8b6
mov ecx, dword [esp + 0x7c]
cmp ecx, esi
jne 0x4ea3b6
lea eax, [ebx + 4]
mov ecx, 0x768d0c
push eax
call fcn.004e8d4a
add edi, 0x5460
adc ebp, 0
mov dword [eax], edi
mov dword [eax + 4], ebp
mov ecx, dword [ebx + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, ebx
mov eax, dword [ebx + 0x65]
mov eax, dword [eax + 4]
add eax, 0xea60
mov dword [ebx + 0x5d], 0x3a98
mov dword [ebx + 0x61], eax
mov byte [ebx + 0x48], 6
call fcn.004e9fce
mov al, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x54]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc