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

Disassembly:
sub esp, 0x9a4
mov al, byte [0x102f6848]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0xb0], al
mov ebx, dword [esp + 0x9b8]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xb1]
rep stosd dword es:[edi], eax
mov edx, dword [ebx]
mov dword [esp + 0x10], 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [edx + 0x45c]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov edi, dword [edx + 0x45c]
cmp edi, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], 1
je 0x10118e5c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x10118e5c
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x16
jae 0x10118d11
mov ecx, 0x16
jmp 0x10118d1d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc ecx
push 1
push ecx
call dword [0x102e205c]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x10118d40
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x9a4
ret
cmp byte [esi], 0x3a
jne 0x10118da7
mov edi, esi
test edi, edi
je 0x10118e00
push 0x3a
push edi
call fcn.1007a450
mov esi, eax
add esp, 8
test esi, esi
je 0x10118e00
push 0xa
lea eax, [esi + 1]
push 0
push eax
call fcn.100885d8
push eax
call fcn.1010b750
mov edi, eax
push 0x2d
push esi
mov dword [esp + 0x3c], edi
call fcn.1007a450
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x10118ded
push 0xa
inc eax
push esi
push eax
call fcn.100885d8
push eax
call fcn.1010b750
add esp, 0x10
mov dword [esp + 0x1c], eax
jmp 0x10118df3
push 0x3a
push esi
call fcn.1007a450
mov edi, eax
add esp, 8
test edi, edi
je 0x10118dcc
mov ecx, edi
sub ecx, esi
push ecx
push esi
push ebp
call fcn.10079c40
add esp, 0xc
jmp 0x10118d47
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10118e00
mov dword [esp + 0x1c], edi
jmp 0x10118e00
cmp di, ax
jbe 0x10118e00
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
cmp byte [ebp], 0
je 0x10118e5c
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x90]
lea ecx, [esp + 0x1b0]
push 0x401
push ecx
mov ecx, dword [eax + 0x18]
push ebp
push edx
push ecx
call fcn.10126fd0
mov edx, dword [ebx + 0x54]
add esp, 4
push eax
mov eax, dword [edx + 4]
push eax
call fcn.10126ff0
add esp, 0x18
sub eax, 0
je 0x10118e52
dec eax
je 0x10119197
dec eax
jne 0x10118e5c
lea edi, [esp + 0x1b0]
jmp 0x10118e54
mov edi, ebp
test edi, edi
jne 0x10118eea
mov eax, dword [ebx + 0x198]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10118eb6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call fcn.100f25b0
mov ecx, dword [esp + 0x1c]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.101002b0
push ebp
call dword [0x102e2050]
add esp, 0x18
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1b0]
push 0x401
lea eax, [esp + 0x38]
push edx
and ecx, 0xffff
push eax
push ecx
call fcn.1010c130
add esp, 0x10
lea edi, [esp + 0x1b0]
mov dword [esp + 0x2c], 0
lea edx, [esp + 0x28]
push edx
push 0
push edi
push ebx
call fcn.100f4d80
add esp, 0x10
cmp eax, 1
jne 0x10118f0e
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.100f3340
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10118f2a
mov ecx, dword [esp + 0x14]
mov esi, dword [eax]
push eax
push ecx
call fcn.100f4f40
add esp, 8
test esi, esi
jne 0x10118f54
mov edx, dword [esp + 0x14]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edx
call fcn.101002b0
push ebp
call dword [0x102e2050]
add esp, 0x10
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
push ebp
call dword [0x102e2050]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
mov ebp, esi
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push ebx
call fcn.10104140
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
je 0x10118f94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x10118f6a
jmp 0x10118f98
test ebp, ebp
jne 0x10118fc2
push edi
push ebx
call fcn.100f25b0
mov ecx, dword [esp + 0x1c]
push eax
push str.socket_failure:__s
push ecx
call fcn.101002b0
add esp, 0x14
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov edx, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
cmp si, word [esp + 0x1c]
mov dword [esp + 0x18], eax
ja 0x101190f8
cmp word [esp + 0x30], 2
jne 0x10119004
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x101190f1
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10119086
cmp eax, 0x2741
jne 0x10119086
push eax
push ebx
call fcn.100f25b0
and esi, 0xffff
push eax
push esi
mov esi, dword [esp + 0x24]
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.10100240
mov eax, dword [ebx + 0x198]
add esp, 0x18
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x101190a0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
jmp 0x10119093
cmp eax, 0x2740
je 0x10119092
cmp eax, 0xd
jne 0x101190b5
inc esi
cmp si, word [esp + 0x1c]
jbe 0x10118ff0
jmp 0x101190f8
call edi
push eax
push ebx
call fcn.100f25b0
push eax
push str.getsockname___failed:__s
push esi
jmp 0x10119184
push eax
push ebx
call fcn.100f25b0
mov edx, dword [esp + 0x1c]
and esi, 0xffff
push eax
push esi
push str.bind_port_hu__failed:__s
push edx
call fcn.101002b0
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.101040e0
add esp, 0x20
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
cmp si, word [esp + 0x1c]
jbe 0x10119125
mov ecx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push ecx
call fcn.101002b0
mov edx, dword [esp + 0x18]
push edx
push ebx
call fcn.101040e0
add esp, 0x10
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1011915b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call fcn.100f25b0
push eax
push str.getsockname___failed:__s
jmp 0x1011917f
mov edx, dword [esp + 0x10]
push 1
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x101191a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call fcn.100f25b0
push eax
push str.socket_failure:__s
mov eax, dword [esp + 0x24]
push eax
call fcn.101002b0
mov ecx, dword [esp + 0x24]
push ecx
push ebx
call fcn.101040e0
add esp, 0x1c
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x9a4
ret
lea edx, [esp + 0xb0]
push 0x100
push edx
push ebp
call fcn.100f4a70
mov edi, dword [esp + 0x9c8]
mov esi, 2
add esp, 0xc
cmp edi, esi
je 0x10119213
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebx + 0x2f4]
test eax, eax
jne 0x101191e1
test edi, edi
je 0x1011920e
cmp edi, 1
jne 0x101191ed
cmp word [esp + 0x30], si
jne 0x1011920e
mov eax, dword [esp + 0x30]
and eax, 0xffff
sub eax, esi
jne 0x1011920e
mov eax, dword [esp + 0x32]
push eax
call ebp
test edi, edi
je 0x1011924f
cmp edi, 1
je 0x101192c8
inc edi
cmp edi, esi
jne 0x101191d3
mov esi, dword [esp + 0x20]
push ebx
mov dword [ebx + 0x578], edi
call fcn.10119390
mov eax, dword [esp + 0x14]
push 0x1c
push ebx
mov dword [ebx + 0x19c], eax
mov dword [ebx + 0x2d8], 1
call fcn.10117dc0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
and eax, 0xffff
xor edx, edx
cmp word [esp + 0x30], si
lea ecx, [esp + 0xb0]
push eax
push ecx
setne dl
inc edx
lea ebp, [ebx + 0x510]
push edx
push str.EPRT
push str._s__d_s_hu
push ebp
call fcn.10127490
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10119217
push esi
call fcn.100f2140
push eax
mov eax, dword [esp + 0x1c]
push str.Failure_sending_EPRT_command:__s
push eax
call fcn.101002b0
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call fcn.101040e0
push 0
push ebx
mov dword [ebp + 0x68], 1
call fcn.10117dc0
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret
lea edx, [esp + 0xb0]
lea ecx, [esp + 0x5b4]
test edx, edx
je 0x101192f7
lea esi, [esp + 0xb0]
mov dl, byte [esi]
test dl, dl
je 0x101192f7
cmp dl, 0x2e
jne 0x101192f1
mov byte [ecx], 0x2c
jmp 0x101192f3
mov byte [ecx], dl
inc ecx
inc esi
jne 0x101192e1
and eax, 0xffff
mov byte [ecx], 0
mov edx, eax
and edx, 0xff
shr eax, 8
push edx
push eax
push str.__d__d
push 0x14
push ecx
call fcn.10105560
lea eax, [esp + 0x5c8]
push eax
push str.PORT
lea eax, [ebx + 0x510]
push 0x102e60cc
push eax
call fcn.10127490
add esp, 0x24
mov dword [esp + 0x20], eax
test eax, eax
je 0x10119213
mov esi, eax
push esi
call fcn.100f2140
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.101002b0
mov edx, dword [esp + 0x20]
push edx
push ebx
call fcn.101040e0
push 0
push ebx
call fcn.10117dc0
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a4
ret