Function at 0x411480
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
lea ecx, [eax + eax*4 + 0x64]
mov esi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov ecx, 0x52b968
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4114e0
test dl, dl
je 0x4114dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4114e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4114c0
xor eax, eax
jmp 0x4114e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4114f3
call fcn.0042b692
add eax, 0x20
jmp 0x411541
mov ecx, 0x52c118
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x411520
test dl, dl
je 0x41151c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x411520
add eax, 2
add ecx, 2
test dl, dl
jne 0x411500
xor eax, eax
jmp 0x411525
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x411533
call fcn.0042b692
add eax, 0x40
jmp 0x411541
push 0x52c11c
push esi
call fcn.0042c190
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x41175c
mov ecx, dword [edi + 0x10]
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
push 0x3c
push edx
mov byte [esp + 0x78], 0
call edi
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0042be60
mov ecx, dword [esp + 0x32]
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
add esp, 0xc
push ecx
call ebx
movzx edx, ax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4115b8
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x70]
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4115d0
mov edx, dword [esp + 0x10]
push edx
push 0x5255b3
mov edx, 0x3b
sub eax, esi
push str._s:_d
sub edx, ecx
push edx
lea eax, [esp + eax + 0x80]
push eax
call fcn.0042bbe1
mov esi, dword [esp + 0x30]
xor eax, eax
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x10]
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
mov ecx, dword [esp + 0x28]
push 0x3c
push ecx
mov byte [esp + 0x3c], 0
call edi
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.0042be60
mov eax, dword [esp + 0x32]
add esp, 0xc
push eax
call ebx
movzx edi, ax
lea eax, [esp + 0x34]
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411660
sub eax, ecx
lea ecx, [esp + 0x34]
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x411670
push edi
push 0x5255b3
mov edx, 0x3b
sub edx, eax
sub ecx, ebx
push str._s:_d
push edx
lea eax, [esp + ecx + 0x44]
push eax
call fcn.0042bbe1
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp eax, 3
jne 0x4116a8
mov eax, 0x52c120
jmp 0x4116cf
cmp eax, 4
jne 0x4116b4
mov eax, 0x52c124
jmp 0x4116cf
cmp eax, 1
jne 0x4116c0
mov eax, 0x52c128
jmp 0x4116cf
cmp eax, 2
mov eax, 0x52c12c
je 0x4116cf
mov eax, 0x52c130
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x7c]
push edx
push esi
push 0
call fcn.0042d5e5
mov ebx, dword [esp + 0x2c]
add esp, 4
push eax
push str._lu__p__s__s__s__d_n
push ebx
call fcn.0042c464
add esp, 0x20
test edi, edi
jle 0x41173e
mov eax, dword [esp + 0x18]
push eax
call fcn.00429546
mov esi, eax
add esp, 4
test esi, esi
je 0x41173e
mov ecx, dword [esp + 0x20]
push esi
push edi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00411290
add esp, 0xc
push esi
push 0x52b6a4
push ebx
call fcn.0042c464
add esp, 0xc
push esi
call fcn.00429469
add esp, 4
call fcn.0042b692
cmp ebx, eax
je 0x41175c
call fcn.0042b692
add eax, 0x20
cmp ebx, eax
je 0x41175c
push ebx
call fcn.0042d569
add esp, 4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00428ddf
mov esp, ebp
pop ebp
ret