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

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1003b064]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
push esi
xor eax, eax
push edi
mov edi, dword [ebp]
mov dword [esp + 0x10], eax
movzx ebx, word [edi + 0x180]
mov ecx, dword [edi + 0x184]
mov esi, dword [edi + 0x394]
push 0xff
push eax
lea edx, [esp + 0x131]
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x134], al
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0
test esi, esi
jne 0x10001fad
test bx, bx
je 0x100022e5
push 0x80
lea eax, [esp + 0x2c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x10002298
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001fd0
sub eax, edx
cmp eax, 0xff
jae 0x10002298
mov edx, dword [section..data]
mov eax, edx
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001ff0
sub eax, ebp
mov ebp, dword [sym.imp.MSVCR90.dll_strncmp]
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10002025
mov eax, dword [section..data]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002013
sub eax, edx
add esi, eax
mov ebx, 1
jmp 0x1000206b
mov edx, dword [str.host_]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002030
sub eax, ebx
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10002067
mov eax, dword [str.host_]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002050
mov ebp, dword [esp + 0x238]
sub eax, edx
add esi, eax
jmp 0x100020ea
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x88]
mov ebp, dword [esp + 0x238]
push pe_nt_image_headers32
lea ecx, [esp + 0x12c]
push ecx
push esi
push eax
push ebp
call fcn.10015140
add esp, 0x14
sub eax, 0
je 0x100020ca
sub eax, 1
je 0x100020c0
sub eax, 1
jne 0x100020e2
push ebp
lea ecx, [esp + 0x12c]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.100219d0
add esp, 0x14
jmp 0x10002183
mov eax, 1
jmp 0x10002313
test ebx, ebx
je 0x100020ea
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.10021a60
add esp, 0xc
jmp 0x1000230e
test ebx, ebx
jne 0x10002287
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x244]
mov dword [esp + 0x14], edx
cmp ebp, 2
jne 0x10002107
mov dword [ebx + 0x244], 1
lea eax, [esp + 0x10]
push eax
push 0
push esi
push ebx
call fcn.1000f870
add esp, 0x10
cmp eax, 1
jne 0x1000212b
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.10001310
add esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x244], edx
test eax, eax
je 0x10002287
mov edx, dword [eax]
push pe_nt_image_headers32
lea ecx, [esp + 0x12c]
push ecx
push edx
call fcn.1000f5d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x138]
push eax
push ebp
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.100219d0
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.1000fa80
add esp, 0x2c
cmp ebp, 2
jne 0x100021c1
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x12c]
push eax
push ebp
call fcn.100179b0
add esp, 0xc
test eax, eax
jle 0x100021c1
mov edx, dword [esp + 0x20]
mov ecx, ebp
push edx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x234]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x10002232
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x100022e9
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.100219d0
add esp, 0xc
inc ebx
cmp word [esp + 0x28], 2
jne 0x1000221d
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x2a], ax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x100021e5
push 0x80
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x20], 0x80
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xac]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x100022c9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
mov dword [edi + 0x85dc], esi
call fcn.10025e30
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10002305
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.10021a60
add esp, 0xc
jmp 0x1000230e
cmp dword [esp + 0x238], 2
jne 0x100021c9
mov eax, 2
push ebx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
jmp 0x100021c9
movzx eax, bx
push eax
push str.Local_port:__hu_n
push edi
call fcn.100219d0
add esp, 0xc
mov dword [ebp + 0x224], 1
xor eax, eax
jmp 0x10002313
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
mov dword [edi + 0x85dc], esi
call fcn.10025e30
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.10021a60
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10031292
add esp, 0x21c
ret