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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9ec
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0xdf], 0
lea edi, [esp + 0xe3]
xor eax, eax
mov ecx, 0xfc
rep stosb byte es:[edi], al
mov esi, dword [edx + 0x3dc]
mov dword [esp + 0x54], 0
test esi, esi
je 0x4211a0
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp eax, 1
jbe 0x4211a0
cmp eax, 0xf
jbe 0x42107c
mov dword [esp + 4], 1
mov dword [esp], ecx
call dword [section..data]
mov ebx, eax
test eax, eax
je 0x4211b0
cmp byte [esi], 0x3a
je 0x4211c8
mov dword [esp + 4], 0x3a
mov dword [esp], esi
call sub.msvcrt.dll_strchr
mov edi, eax
test eax, eax
je 0x421474
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strncpy
mov dword [esp + 4], 0x3a
mov dword [esp], edi
call sub.msvcrt.dll_strchr
mov esi, eax
test eax, eax
je 0x421088
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
lea eax, [esi + 1]
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [esp], eax
call fcn.00414a64
mov word [esp + 0x3a], ax
mov dword [esp + 4], 0x2d
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x42108f
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
inc eax
mov dword [esp], eax
call sub.msvcrt.dll_strtoul
mov dword [esp], eax
call fcn.00414a64
mov ebp, eax
cmp word [esp + 0x3a], ax
jbe 0x421094
xor ebp, ebp
mov word [esp + 0x3a], 0
cmp byte [ebx], 0
je 0x42109d
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x88]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call fcn.0043f3f4
mov dword [esp + 0x14], 0x401
lea edi, [esp + 0x5df]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0043f3fc
cmp eax, 1
je 0x421188
jb 0x42148c
cmp eax, 2
jne 0x42109d
mov dword [esp + 0x28], 1
jmp 0x421200
mov ecx, 0x11
jmp 0x420f25
mov word [esp + 0x3a], 0
mov bp, word [esp + 0x3a]
cmp byte [ebx], 0
jne 0x42100f
mov dword [esp + 0x50], pe_nt_image_headers32
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x154]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
je 0x4211d0
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 8], eax
mov dword [esp + 4], str.getsockname___failed:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
test ebx, ebx
je 0x421188
mov dword [esp], ebx
call dword [0x59b00c]
mov dword [esp + 0x34], 0x1e
jmp 0x421190
mov dword [esp + 0x50], pe_nt_image_headers32
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
je 0x421493
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 8], eax
mov dword [esp + 4], str.getsockname___failed:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004139e0
mov dword [esp + 0x34], 0x1e
mov eax, dword [esp + 0x34]
add esp, 0x9ec
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
xor ebp, ebp
mov word [esp + 0x3a], 0
jmp 0x42109d
mov dword [esp + 0x34], 0x1b
mov eax, dword [esp + 0x34]
add esp, 0x9ec
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, esi
jmp 0x420f75
mov dword [esp + 0xc], 0x401
lea edi, [esp + 0x5df]
mov dword [esp + 8], edi
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
movzx eax, word [esp + 0x58]
mov dword [esp], eax
call fcn.0041b460
mov dword [esp + 0x28], 0
lea esi, [esp + 0x54]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00406c70
dec eax
je 0x421428
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4213e4
mov esi, dword [eax]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.00406e38
test esi, esi
je 0x4213e4
test ebx, ebx
je 0x42125a
mov dword [esp], ebx
call dword [0x59b00c]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x2c], esi
lea ebx, [esp + 0x4c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00413a44
test eax, eax
jne 0x4213a4
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], esi
lea ebx, [esp + 0x58]
mov edx, esi
mov esi, dword [esi + 0x18]
mov ecx, dword [edx + 0x10]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x50], eax
cmp word [esp + 0x3a], bp
ja 0x42140c
mov si, word [esp + 0x3a]
jmp 0x421311
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.WS2_32.dll_bind
sub esp, 0xc
test eax, eax
je 0x42111c
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4212f7
cmp eax, 0x2741
je 0x42132c
cmp eax, 0x2740
je 0x421307
cmp eax, 0xd
jne 0x421440
inc esi
cmp si, bp
ja 0x42140c
cmp word [esp + 0x58], 2
jne 0x4212c0
movzx eax, si
mov dword [esp], eax
call sub.WS2_32.dll_htons
push ecx
mov word [esp + 0x5a], ax
jmp 0x4212c0
mov dword [esp + 4], 0x2741
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 0xc], eax
movzx esi, si
mov dword [esp + 8], esi
mov dword [esp + 4], str.bind_port_hu__on_non_local_address_failed:__s_n
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040e21c
mov dword [esp + 0x50], pe_nt_image_headers32
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x154]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
jne 0x421147
mov si, word [esp + 0x3a]
mov dword [esp + 0x28], 0
jmp 0x421311
call sub.WS2_32.dll_WSAGetLastError
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42126a
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 8], eax
mov dword [esp + 4], str.socket_failure:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
jmp 0x421188
mov dword [esp + 8], edi
mov dword [esp + 4], str.failed_to_resolve_the_address_provided_to_PORT:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
test ebx, ebx
jne 0x421107
jmp 0x421188
mov dword [esp + 4], str.bind___failed__we_ran_out_of_ports_
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
jmp 0x421174
mov dword [esp + 4], esi
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00404130
jmp 0x421227
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 0xc], eax
movzx esi, si
mov dword [esp + 8], esi
mov dword [esp + 4], str.bind_port_hu__failed:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
jmp 0x421174
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov word [esp + 0x3a], 0
jmp 0x42108f
mov edi, ebx
jmp 0x42106c
mov dword [esp + 4], 1
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.WS2_32.dll_listen
sub esp, 8
test eax, eax
je 0x4214e0
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 8], eax
mov dword [esp + 4], str.socket_failure:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
jmp 0x421174
mov dword [esp + 8], 0x100
lea ebx, [esp + 0xdf]
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
call fcn.004069fc
cmp dword [esp + 0x3c], 2
je 0x421547
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x230]
mov edi, edx
mov esi, dword [esp + 0x3c]
nop
test eax, eax
jne 0x421520
test esi, esi
je 0x421538
cmp esi, 1
je 0x42153b
cmp word [esp + 0x58], 2
je 0x421594
cmp esi, 1
je 0x421547
mov eax, dword [edi + 0x230]
inc esi
jmp 0x421518
cmp word [esp + 0x58], 2
je 0x4215f4
mov eax, 2
mov edx, dword [esp + 0x24]
mov dword [edx + 0x500], eax
mov eax, dword [edx + 0x158]
cmp eax, 0xffffffff
je 0x42156d
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004139e0
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov dword [edx + 0x158], eax
mov dword [edx + 0x214], 1
mov dword [edx + 0x50c], 0x1c
jmp 0x421190
movzx eax, word [esp + 0x5a]
mov dword [esp], eax
call sub.WS2_32.dll_ntohs
push ebp
test esi, esi
jne 0x42152d
movzx eax, ax
xor edx, edx
cmp word [esp + 0x58], 2
setne dl
inc edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.EPRT
mov dword [esp + 4], str._s__d_s_hu
mov eax, dword [esp + 0x24]
add eax, 0x498
mov dword [esp], eax
call fcn.004422f4
mov ebx, eax
test eax, eax
jne 0x421688
xor eax, eax
jmp 0x42154c
movzx eax, word [esp + 0x5a]
mov dword [esp], eax
call sub.WS2_32.dll_ntohs
push ecx
lea ecx, [esp + 0x1df]
mov edx, ebx
jmp 0x421613
mov byte [ecx], bl
inc ecx
inc edx
je 0x421623
mov bl, byte [edx]
test bl, bl
je 0x421623
cmp bl, 0x2e
jne 0x42160d
mov byte [ecx], 0x2c
jmp 0x42160f
mov byte [ecx], 0
movzx edx, al
mov dword [esp + 0x10], edx
movzx eax, ah
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.__d__d
mov dword [esp + 4], 0x14
mov dword [esp], ecx
call sym.curl.exe_curl_msnprintf
lea edx, [esp + 0x1df]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.PORT
mov dword [esp + 4], 0x5a86c4
mov eax, dword [esp + 0x24]
add eax, 0x498
mov dword [esp], eax
call fcn.004422f4
mov ebx, eax
test eax, eax
jne 0x4216dd
mov eax, 1
jmp 0x42154c
mov dword [esp], eax
call sym.curl.exe_curl_easy_strerror
mov dword [esp + 8], eax
mov dword [esp + 4], str.Failure_sending_EPRT_command:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004139e0
mov eax, dword [esp + 0x24]
mov dword [eax + 0x500], 1
mov dword [eax + 0x50c], 0
mov dword [esp + 0x34], ebx
jmp 0x421190
mov dword [esp], eax
call sym.curl.exe_curl_easy_strerror
mov dword [esp + 8], eax
mov dword [esp + 4], str.Failure_sending_PORT_command:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040dcf0
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004139e0
mov eax, dword [esp + 0x24]
mov dword [eax + 0x50c], 0
mov dword [esp + 0x34], ebx
jmp 0x421190