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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fc78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x10], esp
push 2
mov esi, ecx
push 2
mov dword [ebp - 0x24], esi
call edi
push eax
push 1
lea eax, [ebp - 0x18]
push eax
call dword [esi + 0x38]
test eax, eax
jne 0x427834
push 2
push 2
call edi
push eax
push 1
lea ecx, [ebp - 0x1c]
push ecx
call dword [esi + 0x3c]
test eax, eax
je 0x427848
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 0x18]
cmp esi, dword [eax]
mov dword [ebp - 0x14], esi
jae 0x427a63
lea edx, [esi + esi*2]
cmp dword [eax + edx*8 + 4], 2
jne 0x427a5d
push 0x98
mov dword [ebp - 4], ebx
call fcn.0055044f
add esp, 4
cmp eax, ebx
je 0x4278c6
mov dword [eax + 0x18], ebx
mov ecx, 0xf
mov dword [eax + 0x1c], ecx
mov byte [eax + 8], bl
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ebx
mov byte [eax + 0x24], bl
mov dword [eax + 0x58], ecx
mov dword [eax + 0x54], ebx
mov byte [eax + 0x44], bl
mov dword [eax + 0x78], ecx
mov dword [eax + 0x74], ebx
mov byte [eax + 0x64], bl
mov dword [eax + 0x94], ecx
mov dword [eax + 0x90], ebx
mov byte [eax + 0x80], bl
mov edi, eax
mov dword [eax + 0x3c], ebx
mov dword [eax], ebx
mov dword [eax + 0x5c], ebx
mov dword [ebp - 0x20], edi
jmp 0x4278e4
xor eax, eax
mov edi, eax
mov dword [ebp - 0x20], edi
jmp 0x4278e4
or eax, 0xffffffff
cmp edi, ebx
mov dword [ebp - 4], eax
je 0x427bfa
push 3
lea ecx, [edi + 0x20]
push 0x574070
call fcn.00404640
mov eax, dword [ebp - 0x18]
lea esi, [esi + esi*2]
shl esi, 3
mov ecx, dword [esi + eax + 0x18]
mov dword [edi], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + edx + 8]
push 2
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.005048e9
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x40]
push eax
mov dword [ebp - 4], 2
call fcn.00404360
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x427952
mov edx, dword [ebp - 0x40]
push edx
call fcn.0055047a
add esp, 4
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [esi + eax + 0xc]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
movzx edx, ax
mov dword [edi + 0x3c], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [esi + eax + 4]
shl edx, 5
add edx, 0x5ac358
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x28], ecx
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x427990
sub eax, dword [ebp - 0x28]
push eax
push edx
lea ecx, [edi + 0x7c]
call fcn.00404640
mov eax, dword [ebp - 0x18]
cmp dword [esi + eax + 4], 2
je 0x427a11
mov edx, dword [esi + eax + 0x10]
push 2
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.005048e9
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x60]
push eax
mov dword [ebp - 4], 3
call fcn.00404360
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4279ed
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0055047a
add esp, 4
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [esi + edx + 0x14]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
push eax
call dword [sym.imp.WSOCK32.dll_htons]
movzx ecx, ax
mov dword [edi + 0x5c], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ecx + 4]
cmp esi, ebx
jne 0x427a1f
xor edx, edx
jmp 0x427a27
mov edx, dword [ecx + 8]
sub edx, esi
sar edx, 2
cmp esi, ebx
je 0x427a4b
mov eax, dword [ecx + 0xc]
sub eax, esi
sar eax, 2
cmp edx, eax
jae 0x427a4b
mov eax, dword [ecx + 8]
mov esi, dword [ebp - 0x14]
mov dword [eax], edi
add eax, 4
mov dword [ecx + 8], eax
inc esi
jmp 0x42784c
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x20]
push edx
push 1
push eax
call fcn.00427340
mov esi, dword [ebp - 0x14]
inc esi
jmp 0x42784c
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x427a70
mov eax, dword [ebp - 0x1c]
cmp esi, dword [eax]
jae 0x427bf8
push 0x98
mov dword [ebp - 4], 4
call fcn.0055044f
add esp, 4
cmp eax, ebx
je 0x427add
mov dword [eax + 0x18], ebx
mov ecx, 0xf
mov dword [eax + 0x1c], ecx
mov byte [eax + 8], bl
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], ebx
mov byte [eax + 0x24], bl
mov dword [eax + 0x58], ecx
mov dword [eax + 0x54], ebx
mov byte [eax + 0x44], bl
mov dword [eax + 0x78], ecx
mov dword [eax + 0x74], ebx
mov byte [eax + 0x64], bl
mov dword [eax + 0x94], ecx
mov dword [eax + 0x90], ebx
mov byte [eax + 0x80], bl
mov edi, eax
mov dword [eax + 0x3c], ebx
mov dword [eax], ebx
mov dword [eax + 0x5c], ebx
mov dword [ebp - 0x20], edi
jmp 0x427afb
xor eax, eax
mov edi, eax
mov dword [ebp - 0x20], edi
jmp 0x427afb
or eax, 0xffffffff
cmp edi, ebx
mov dword [ebp - 4], eax
je 0x427bfa
push 3
lea ecx, [edi + 0x20]
push 0x574074
call fcn.00404640
mov ecx, dword [ebp - 0x1c]
lea esi, [esi + esi*2]
shl esi, 2
mov edx, dword [esi + ecx + 0xc]
mov dword [edi], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + eax + 4]
push 2
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.005048e9
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x40]
push eax
mov dword [ebp - 4], 6
call fcn.00404360
cmp dword [ebp - 0x64], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x427b69
mov eax, dword [ebp - 0x78]
push eax
call fcn.0055047a
add esp, 4
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [esi + ecx + 8]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
push edx
call dword [sym.imp.WSOCK32.dll_htons]
movzx eax, ax
push 3
push 0x57406c
lea ecx, [edi + 0x60]
mov dword [edi + 0x3c], eax
call fcn.00404640
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x427baa
xor esi, esi
jmp 0x427bb2
mov esi, dword [ecx + 8]
sub esi, eax
sar esi, 2
cmp eax, ebx
je 0x427bdb
mov edx, dword [ecx + 0xc]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x427bdb
mov eax, dword [ecx + 8]
mov dword [eax], edi
add eax, 4
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov esi, eax
jmp 0x427a70
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x20]
push edx
push 1
push eax
call fcn.00427340
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov esi, eax
jmp 0x427a70
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret