Function at 0x414a30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x224
mov eax, dword [0x4504f4]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi]
movzx ebx, word [ebp + 0x128]
mov ecx, dword [ebp + 0x12c]
push edi
mov edi, dword [ebp + 0x2bc]
xor eax, eax
push 0xff
push eax
lea edx, [esp + 0x131]
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x134], al
call fcn.00429240
add esp, 0xc
test edi, edi
jne 0x414a9f
test bx, bx
je 0x414ce2
push 0x80
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00429240
add esp, 0xc
test edi, edi
je 0x414c97
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414ac0
sub eax, edx
cmp eax, 0xff
jae 0x414c97
cmp dword [esp + 0x23c], 2
mov ebx, dword [ebp + 0x244]
jne 0x414aee
mov dword [ebp + 0x244], 1
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
push esi
call fcn.004154e0
add esp, 0x10
cmp eax, 1
jne 0x414b11
lea edx, [esp + 0x1c]
push edx
call fcn.00423d50
add esp, 4
mov dword [ebp + 0x244], ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x414c85
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
sub eax, 2
jne 0x414b48
mov ecx, dword [ecx + 0x18]
add ecx, 4
push 0x100
push ecx
lea esi, [esp + 0x130]
call fcn.00424190
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x23c]
push ecx
lea edx, [esp + 0x12c]
push edx
push eax
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
mov ecx, ebp
call fcn.00415780
add esp, 0x14
mov edi, ebx
mov esi, ebp
call fcn.004156a0
cmp dword [esp + 0x23c], 2
jne 0x414bbc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x12c]
push edx
call fcn.00424970
add esp, 8
test eax, eax
jle 0x414bbc
mov ecx, dword [esp + 0x20]
mov eax, 2
push ecx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x238]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x414c2e
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jle 0x414ce6
movzx edx, bx
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
mov ecx, ebp
call fcn.00415780
add esp, 8
inc ebx
cmp word [esp + 0x28], 2
jne 0x414c19
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x414be0
push 0x80
lea edx, [esp + 0xac]
push 0
push edx
mov dword [esp + 0x24], 0x80
call fcn.00429240
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xac]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x414cc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
mov dword [ebp + 0x84bc], edi
call fcn.004248a0
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x414d04
push edi
push str.Couldnt_bind_to__s
mov eax, ebp
call fcn.00415840
add esp, 8
jmp 0x414d0e
cmp dword [esp + 0x23c], 2
jne 0x414bc4
mov edx, 2
push ebx
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x414bc4
movzx edx, bx
push edx
push str.Local_port:__hu_n
mov ecx, ebp
call fcn.00415780
add esp, 8
mov byte [esi + 0x133], 1
xor eax, eax
jmp 0x414d13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
mov dword [ebp + 0x84bc], edi
call fcn.004248a0
add esp, 4
push eax
push edi
push str.bind_failed_with_errno__d:__s
mov eax, ebp
call fcn.00415840
add esp, 0xc
mov eax, 0x2d
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427d7d
add esp, 0x224
ret