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

Disassembly:
sub esp, 0x628
mov eax, dword [0x45d380]
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 0x425ee2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425ce8
sub eax, edx
cmp eax, 1
jbe 0x425ee2
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425d00
sub eax, edx
cmp eax, 0x41
jae 0x425d15
mov eax, 0x41
jmp 0x425d29
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425d20
sub eax, edx
inc eax
push 1
push eax
call dword [0x45d010]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x425d4b
mov dword [esp + 0x28], 0x1b
jmp 0x4262fb
mov al, byte [esi]
mov ebp, dword [sym.imp.MSVCR100.dll_strchr]
cmp al, 0x5b
jne 0x425dff
push 0x5d
push esi
lea ebx, [esi + 1]
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x425e87
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 0x425e8b
push 0x3a
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x425e8b
mov edi, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
lea edx, [esi + 1]
push 0
push edx
call edi
push eax
call fcn.004128b0
movzx eax, ax
push 0x2d
push esi
mov dword [esp + 0x38], eax
call ebp
add esp, 0x18
test eax, eax
je 0x425e7c
push 0xa
inc eax
push 0
push eax
call edi
push eax
call fcn.004128b0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x14], eax
cmp word [esp + 0x20], ax
jbe 0x425e8b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x425e8b
cmp al, 0x3a
jne 0x425e0a
mov edi, esi
jmp 0x425d86
push 0x3a
push esi
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x425e65
lea edx, [esp + 0x3c]
push edx
push esi
push 0x17
call fcn.00441a70
add esp, 0xc
cmp eax, 1
jne 0x425e4c
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 0x425e40
jmp 0x425e8b
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 0x425d86
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 0x425e70
jmp 0x425e8b
movzx ecx, word [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x425e8b
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
cmp byte [esi], 0
je 0x425ee2
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.00441710
mov edx, dword [edi + 0x40]
add esp, 4
push eax
mov eax, dword [edx]
push eax
call fcn.004417a0
add esp, 0x18
sub eax, 0
je 0x425f83
dec eax
je 0x4262fb
dec eax
je 0x425f7c
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 0x425f36
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040a220
push eax
push str.getsockname___failed:__s
push ebx
call fcn.004132e0
add esp, 0x18
jmp 0x4262fb
movzx eax, word [esp + 0x3c]
push 0x401
cmp eax, 0x17
je 0x425f55
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
jmp 0x425f64
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0x17
call fcn.0043d5a0
add esp, 0x10
test eax, eax
je 0x4262fb
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.004323e0
add esp, 0x14
cmp eax, 1
jne 0x425fa9
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00412cb0
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x425fc1
mov edi, dword [eax]
push eax
push ebx
call fcn.004326d0
add esp, 8
test edi, edi
jne 0x425fd5
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.004132e0
add esp, 0xc
jmp 0x4262fb
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.0043b4b0
add esp, 0x14
test eax, eax
je 0x42600e
call ebp
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x425fe0
jmp 0x426012
test edi, edi
jne 0x426039
push 0x100
lea ecx, [esp + 0x134]
push ecx
push esi
call fcn.0040a220
push eax
push str.socket_failure:__s
push ebx
call fcn.004132e0
add esp, 0x18
jmp 0x4262fb
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 0x42615f
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 0x426158
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x30], 0
je 0x426102
cmp eax, 0x2741
jne 0x426102
push 0x100
lea eax, [esp + 0x134]
push eax
push 0x2741
call fcn.0040a220
push eax
movzx ecx, si
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s
push ebx
call fcn.00413420
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 0x426193
movzx esi, bp
mov dword [esp + 0x30], eax
jmp 0x42610f
cmp eax, 0x2740
je 0x42610e
cmp eax, 0xd
jne 0x42612d
inc esi
cmp si, word [esp + 0x14]
jbe 0x426067
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.004132e0
add esp, 8
jmp 0x4262fb
push 0x100
lea ecx, [esp + 0x134]
push ecx
push eax
call fcn.0040a220
push eax
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push ebx
call fcn.004132e0
add esp, 0x1c
jmp 0x4262fb
cmp si, word [esp + 0x14]
jbe 0x426172
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.004132e0
add esp, 8
jmp 0x4262fb
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 0x4261a5
push 0x100
lea eax, [esp + 0x134]
push eax
jmp 0x425f16
mov ecx, dword [esp + 0x18]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4261e3
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040a220
push eax
push str.socket_failure:__s
push ebx
call fcn.004132e0
add esp, 0x18
jmp 0x4262fb
push 0x2f
lea eax, [esp + 0xc0]
push eax
push edi
call fcn.00431960
mov ebp, dword [esp + 0x30]
add esp, 0xc
cmp dword [ebp + 0x220], 0
jne 0x426216
cmp dword [ebp + 0x208], 0
je 0x426216
mov dword [ebp + 0x220], 1
mov edi, dword [esp + 0x38]
cmp edi, 2
je 0x426276
mov cx, word [esp + 0x3c]
cmp dword [ebp + 0x220], 0
jne 0x426231
test edi, edi
je 0x426270
cmp edi, 1
jne 0x42623c
cmp cx, 2
jne 0x426270
movzx eax, cx
sub eax, 2
je 0x426250
sub eax, 0x15
jne 0x426270
mov ecx, dword [esp + 0x3e]
push ecx
jmp 0x426255
mov edx, dword [esp + 0x3e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
test edi, edi
je 0x4262ab
cmp edi, 1
je 0x42634a
mov cx, word [esp + 0x3c]
inc edi
cmp edi, 2
jne 0x426224
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
push ebx
mov dword [ebp + 0x498], edi
call fcn.0043cf00
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4262fb
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x18], 0xffffffff
mov byte [edx + 0x4a6], 0x1c
jmp 0x426309
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.004400b0
add esp, 0x1c
mov dword [esp + 0x28], eax
test eax, eax
je 0x426276
push eax
call fcn.00409760
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.004132e0
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 0x426321
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
call fcn.0043b580
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [0x45d004]
mov ecx, dword [esp + 0x638]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bb74
add esp, 0x628
ret
lea ecx, [esp + 0xec]
lea edx, [esp + 0xbc]
mov al, byte [edx]
test al, al
je 0x42636d
cmp al, 0x2e
jne 0x426367
mov byte [ecx], 0x2c
jmp 0x426369
mov byte [ecx], al
inc ecx
inc edx
jne 0x426358
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.00418710
lea eax, [esp + 0x100]
push eax
push str.PORT
push 0x451d14
lea eax, [ebp + 0x408]
push eax
push ebx
call fcn.004400b0
add esp, 0x28
mov dword [esp + 0x28], eax
test eax, eax
je 0x426276
push eax
call fcn.00409760
push eax
push str.Failure_sending_PORT_command:__s
jmp 0x4262f2