Function at 0x4280f0
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x55fd26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x428676
lea ecx, [esp + 0x13c]
mov dword [esp + 0x34], ecx
mov ebp, 0x10
xor ebx, ebx
mov esi, dword [eax]
cmp dword [esi + 0x58], ebp
jb 0x428141
mov eax, dword [esi + 0x44]
jmp 0x428144
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, dword [esp + 0x188]
jne 0x4281ad
xor edx, edx
mov dx, word [esi + 0x3c]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x184]
movzx eax, ax
cmp eax, ecx
jne 0x4281ad
mov eax, dword [esp + 0x180]
lea ecx, [esi + 0x20]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x428180
mov edx, dword [esp + 0x180]
sub eax, edi
push eax
mov eax, dword [ecx + 0x14]
push edx
push eax
push ebx
call fcn.0041578d
test eax, eax
jne 0x4281ad
cmp dword [esi], ebx
jne 0x4281ad
mov ecx, dword [esp + 0x18c]
mov dword [esi], ecx
push 1
push 2
lea ecx, [esp + 0xf8]
call fcn.00404a20
cmp dword [esi + 0x58], ebp
mov dword [esp + 0x178], ebx
jb 0x4281ce
mov eax, dword [esi + 0x44]
jmp 0x4281d1
lea eax, [esi + 0x44]
mov edx, dword [esi + 0x3c]
push edx
push str._LocalPort:
push eax
mov eax, dword [esi]
push str._LocalAddr:
push eax
lea ecx, [esp + 0x104]
push str.pid
push ecx
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.0040bbec
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.0040bbec
cmp dword [0x5b21c0], 0x103
jne 0x428584
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 2
lea ecx, [esp + 0x78]
call fcn.00404a20
push 0x572a6c
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x180], 1
call fcn.00407320
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x17c], 2
jb 0x428279
mov eax, dword [eax + 4]
jmp 0x42827c
add eax, 4
mov ecx, dword [esp + 0x30]
push eax
mov edx, dword [esp + 0x32]
push 0x572a4c
mov eax, dword [esp + 0x34]
push 0x572a6c
push 0x572a48
push 0x103
push 0x572a40
push ecx
mov ecx, dword [esp + 0x46]
push 0x572a3c
push edx
mov edx, dword [esp + 0x4a]
push 0x572a3c
push eax
mov eax, dword [esp + 0x50]
push 0x572a38
push ecx
push 0x572a34
push edx
push 0x572a34
push eax
push 0x572a38
push 0x30c
push 0x572a3c
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x8c], esp
push 0xb
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str..Fport.cpp
mov byte [ecx + 4], bl
call fcn.00404640
lea ecx, [esp + 0xc8]
push ecx
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x1cc], 3
jb 0x428326
mov eax, dword [eax + 4]
jmp 0x428329
add eax, 4
push eax
lea edx, [esp + 0xc8]
push 0x572a0c
push edx
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
mov eax, dword [esp + 0x74]
add esp, 8
cmp eax, ebp
jb 0x42840a
mov eax, dword [esp + 0x58]
push eax
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x178], 1
jb 0x428431
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0055047a
add esp, 4
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00407930
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xc0]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + edx + 0x70], 0x572924
lea eax, [esp + 0x74]
mov dword [esp + 0x30], eax
test byte [esp + 0xb4], 1
mov dword [esp + 0x74], 0x5728a0
je 0x428490
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
push eax
call fcn.0055047a
add esp, 4
mov edx, dword [esp + 0x84]
mov dword [edx], ebx
mov eax, dword [esp + 0x94]
mov dword [eax], ebx
mov ecx, dword [esp + 0xa4]
mov dword [ecx], ebx
mov edx, dword [esp + 0x88]
mov dword [edx], ebx
mov eax, dword [esp + 0x98]
mov dword [eax], ebx
mov ecx, dword [esp + 0xa8]
mov dword [ecx], ebx
mov edx, dword [esp + 0xb4]
and edx, 0xfffffffe
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x74], 0x57286c
mov eax, dword [esp + 0xac]
cmp eax, ebx
mov byte [esp + 0x178], 5
mov edi, eax
je 0x428546
mov esi, dword [eax]
cmp esi, ebx
je 0x42853d
push ebx
lea ecx, [esp + 0x20]
call fcn.0054db25
mov eax, dword [esi + 4]
cmp eax, ebx
jbe 0x42851b
cmp eax, 0xffffffff
jae 0x42851b
dec eax
mov dword [esi + 4], eax
mov ecx, dword [esi + 4]
xor edx, edx
cmp ecx, ebx
setne dl
lea ecx, [esp + 0x1c]
dec edx
and esi, edx
call fcn.0054db48
cmp esi, ebx
je 0x42853d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push edi
call fcn.0055047a
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0x178], 4
call fcn.0054e238
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x70], 0x57283c
lea ecx, [esp + 0xbc]
mov byte [esp + 0x178], bl
mov dword [esp + 0xbc], 0x572840
call fcn.0054dfcb
mov eax, dword [esp + 0xf0]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xf0], 0x572924
test byte [esp + 0x134], 1
mov dword [esp + 0x178], 6
mov dword [esp + 0xf4], 0x5728a0
je 0x4285cb
mov edx, dword [esp + 0x104]
mov eax, dword [edx]
push eax
call fcn.0055047a
add esp, 4
mov eax, dword [esp + 0x104]
mov dword [eax], ebx
mov ecx, dword [esp + 0x114]
mov dword [ecx], ebx
mov edx, dword [esp + 0x124]
mov dword [edx], ebx
mov eax, dword [esp + 0x108]
mov dword [eax], ebx
mov ecx, dword [esp + 0x118]
mov dword [ecx], ebx
mov edx, dword [esp + 0x128]
mov dword [edx], ebx
mov esi, dword [esp + 0x134]
and esi, 0xfffffffe
lea ecx, [esp + 0xf4]
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], esi
call fcn.00401b90
mov eax, dword [esp + 0xf0]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xf0], 0x57283c
lea ecx, [esp + 0x13c]
mov dword [esp + 0x178], 0xffffffff
mov dword [esp + 0x13c], 0x572840
call fcn.0054dfcb
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 8]
add eax, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x428135
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x16c
ret 0x10