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

Disassembly:
sub esp, 0x628
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x624], eax
mov eax, dword [esp + 0x62c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
push 0x2e
xor edi, edi
lea edx, [esp + 0xc1]
push edi
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], 0x1e
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0xc8], 0
call sub.MSVCR100.dll_memset
mov esi, dword [ebx + 0x584]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x426b42
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426948
sub eax, edx
cmp eax, 1
jbe 0x426b42
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426960
sub eax, edx
cmp eax, 0x41
jae 0x426975
mov eax, 0x41
jmp 0x426989
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426980
sub eax, edx
inc eax
push 1
push eax
call dword [0x45e010]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4269ab
mov dword [esp + 0x28], 0x1b
jmp 0x426f5b
mov al, byte [esi]
mov ebp, dword [sym.imp.MSVCR100.dll_strchr]
cmp al, 0x5b
jne 0x426a5f
push 0x5d
push esi
lea ebx, [esi + 1]
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x426ae7
mov ecx, dword [esp + 0x10]
sub eax, ebx
push eax
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
mov ebx, dword [esp + 0x40]
add esp, 0xc
test edi, edi
je 0x426aeb
push 0x3a
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x426aeb
mov edi, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
lea edx, [esi + 1]
push 0
push edx
call edi
push eax
call fcn.004134f0
movzx eax, ax
push 0x2d
push esi
mov dword [esp + 0x38], eax
call ebp
add esp, 0x18
test eax, eax
je 0x426adc
push 0xa
inc eax
push 0
push eax
call edi
push eax
call fcn.004134f0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x14], eax
cmp word [esp + 0x20], ax
jbe 0x426aeb
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x426aeb
cmp al, 0x3a
jne 0x426a6a
mov edi, esi
jmp 0x4269e6
push 0x3a
push esi
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x426ac5
lea edx, [esp + 0x3c]
push edx
push esi
push 0x17
call fcn.00442680
add esp, 0xc
cmp eax, 1
jne 0x426aac
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x426aa0
jmp 0x426aeb
mov ecx, dword [esp + 0x10]
mov eax, edi
sub eax, esi
push eax
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
jmp 0x4269e6
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x426ad0
jmp 0x426aeb
movzx ecx, word [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x426aeb
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
cmp byte [esi], 0
je 0x426b42
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x4ec]
mov ecx, dword [edi + 0x40]
push 0x401
lea edx, [esp + 0x234]
push edx
push esi
push eax
add ecx, 0x10
push ecx
call fcn.00442330
mov edx, dword [edi + 0x40]
add esp, 4
push eax
mov eax, dword [edx]
push eax
call fcn.0040fcf0
add esp, 0x18
sub eax, 0
je 0x426be3
dec eax
je 0x426f5b
dec eax
je 0x426bdc
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], 0x80
mov ecx, dword [eax + 0x120]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x426b96
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040ae50
push eax
push str.getsockname___failed:__s
push ebx
call fcn.00413f30
add esp, 0x18
jmp 0x426f5b
movzx eax, word [esp + 0x3c]
push 0x401
cmp eax, 0x17
je 0x426bb5
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
jmp 0x426bc4
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0x17
call fcn.0043e1f0
add esp, 0x10
test eax, eax
je 0x426f5b
mov dword [esp + 0x30], 0
lea esi, [esp + 0x230]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push esi
push ebx
call fcn.00433040
add esp, 0x14
cmp eax, 1
jne 0x426c09
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00413900
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x426c21
mov edi, dword [eax]
push eax
push ebx
call fcn.00433330
add esp, 8
test edi, edi
jne 0x426c35
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.00413f30
add esp, 0xc
jmp 0x426f5b
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor esi, esi
lea ecx, [ecx]
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + 0x4f7]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0
push edi
push ebx
call fcn.0043c100
add esp, 0x14
test eax, eax
je 0x426c6e
call ebp
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x426c40
jmp 0x426c72
test edi, edi
jne 0x426c99
push 0x100
lea ecx, [esp + 0x134]
push ecx
push esi
call fcn.0040ae50
push eax
push str.socket_failure:__s
push ebx
call fcn.00413f30
add esp, 0x18
jmp 0x426f5b
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
call sub.MSVCR100.dll_memcpy
mov ebp, dword [esp + 0x2c]
mov edx, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], edx
movzx esi, bp
cmp bp, word [esp + 0x14]
ja 0x426dbf
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x18]
mov word [esp + 0x3e], ax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x426db8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x30], 0
je 0x426d62
cmp eax, 0x2741
jne 0x426d62
push 0x100
lea eax, [esp + 0x134]
push eax
push 0x2741
call fcn.0040ae50
push eax
movzx ecx, si
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s
push ebx
call fcn.00414070
mov ecx, dword [esp + 0x40]
add esp, 0x1c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x80
mov edx, dword [ecx + 0x120]
push eax
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x426df3
movzx esi, bp
mov dword [esp + 0x30], eax
jmp 0x426d6f
cmp eax, 0x2740
je 0x426d6e
cmp eax, 0xd
jne 0x426d8d
inc esi
cmp si, word [esp + 0x14]
jbe 0x426cc7
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.00413f30
add esp, 8
jmp 0x426f5b
push 0x100
lea ecx, [esp + 0x134]
push ecx
push eax
call fcn.0040ae50
push eax
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push ebx
call fcn.00413f30
add esp, 0x1c
jmp 0x426f5b
cmp si, word [esp + 0x14]
jbe 0x426dd2
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.00413f30
add esp, 8
jmp 0x426f5b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x426e05
push 0x100
lea eax, [esp + 0x134]
push eax
jmp 0x426b76
mov ecx, dword [esp + 0x18]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x426e43
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040ae50
push eax
push str.socket_failure:__s
push ebx
call fcn.00413f30
add esp, 0x18
jmp 0x426f5b
push 0x2f
lea eax, [esp + 0xc0]
push eax
push edi
call fcn.004325c0
mov ebp, dword [esp + 0x30]
add esp, 0xc
cmp dword [ebp + 0x220], 0
jne 0x426e76
cmp dword [ebp + 0x208], 0
je 0x426e76
mov dword [ebp + 0x220], 1
mov edi, dword [esp + 0x38]
cmp edi, 2
je 0x426ed6
mov cx, word [esp + 0x3c]
cmp dword [ebp + 0x220], 0
jne 0x426e91
test edi, edi
je 0x426ed0
cmp edi, 1
jne 0x426e9c
cmp cx, 2
jne 0x426ed0
movzx eax, cx
sub eax, 2
je 0x426eb0
sub eax, 0x15
jne 0x426ed0
mov ecx, dword [esp + 0x3e]
push ecx
jmp 0x426eb5
mov edx, dword [esp + 0x3e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
test edi, edi
je 0x426f0b
cmp edi, 1
je 0x426faa
mov cx, word [esp + 0x3c]
inc edi
cmp edi, 2
jne 0x426e84
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
push ebx
mov dword [ebp + 0x498], edi
call fcn.0043db50
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
jne 0x426f5b
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x18], 0xffffffff
mov byte [edx + 0x4a6], 0x1c
jmp 0x426f69
xor edx, edx
cmp word [esp + 0x3c], 2
movzx eax, si
push eax
setne dl
lea ecx, [esp + 0xc0]
push ecx
lea eax, [ebp + 0x408]
inc edx
push edx
push str.EPRT
push str._s__d_s_hu
push eax
push ebx
call fcn.00440cf0
add esp, 0x1c
mov dword [esp + 0x28], eax
test eax, eax
je 0x426ed6
push eax
call fcn.0040a390
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.00413f30
add esp, 0x10
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x28]
mov byte [eax + 0x4a6], 0
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x426f81
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
call fcn.0043c1d0
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [0x45e004]
mov ecx, dword [esp + 0x638]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c7a4
add esp, 0x628
ret
lea ecx, [esp + 0xec]
lea edx, [esp + 0xbc]
mov al, byte [edx]
test al, al
je 0x426fcd
cmp al, 0x2e
jne 0x426fc7
mov byte [ecx], 0x2c
jmp 0x426fc9
mov byte [ecx], al
inc ecx
inc edx
jne 0x426fb8
movzx eax, si
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.00419370
lea eax, [esp + 0x100]
push eax
push str.PORT
push 0x452d34
lea eax, [ebp + 0x408]
push eax
push ebx
call fcn.00440cf0
add esp, 0x28
mov dword [esp + 0x28], eax
test eax, eax
je 0x426ed6
push eax
call fcn.0040a390
push eax
push str.Failure_sending_PORT_command:__s
jmp 0x426f52