Function at 0x41f96c
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 0x41fc58
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp eax, 1
jbe 0x41fc58
cmp eax, 0xf
jbe 0x41fb34
mov dword [esp + 4], 1
mov dword [esp], ecx
call dword [section..data]
mov ebx, eax
test eax, eax
je 0x41fc68
cmp byte [esi], 0x3a
je 0x41fc80
mov dword [esp + 4], 0x3a
mov dword [esp], esi
call sub.msvcrt.dll_strchr
mov edi, eax
test eax, eax
je 0x41ff2c
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 0x41fb40
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.0041351c
mov word [esp + 0x3a], ax
mov dword [esp + 4], 0x2d
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x41fb47
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.0041351c
mov ebp, eax
cmp word [esp + 0x3a], ax
jbe 0x41fb4c
xor ebp, ebp
mov word [esp + 0x3a], 0
cmp byte [ebx], 0
je 0x41fb55
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.0043efd4
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.0043efdc
cmp eax, 1
je 0x41fc40
jb 0x41ff44
cmp eax, 2
jne 0x41fb55
mov dword [esp + 0x28], 1
jmp 0x41fcb8
mov ecx, 0x11
jmp 0x41f9dd
mov word [esp + 0x3a], 0
mov bp, word [esp + 0x3a]
cmp byte [ebx], 0
jne 0x41fac7
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 0x41fc88
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004379c0
mov dword [esp + 8], eax
mov dword [esp + 4], str.getsockname___failed:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040c7a8
test ebx, ebx
je 0x41fc40
mov dword [esp], ebx
call dword [0x59b00c]
mov dword [esp + 0x34], 0x1e
jmp 0x41fc48
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 0x41ff4b
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004379c0
mov dword [esp + 8], eax
mov dword [esp + 4], str.getsockname___failed:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040c7a8
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00412498
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 0x41fb55
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 0x41fa2d
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.00419f18
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.00405728
dec eax
je 0x41fee0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x41fe9c
mov esi, dword [eax]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.004058f0
test esi, esi
je 0x41fe9c
test ebx, ebx
je 0x41fd12
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.004124fc
test eax, eax
jne 0x41fe5c
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 0x41fec4
mov si, word [esp + 0x3a]
jmp 0x41fdc9
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 0x41fbd4
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [esp + 0x28]
test edx, edx
je 0x41fdaf
cmp eax, 0x2741
je 0x41fde4
cmp eax, 0x2740
je 0x41fdbf
cmp eax, 0xd
jne 0x41fef8
inc esi
cmp si, bp
ja 0x41fec4
cmp word [esp + 0x58], 2
jne 0x41fd78
movzx eax, si
mov dword [esp], eax
call sub.WS2_32.dll_htons
push ecx
mov word [esp + 0x5a], ax
jmp 0x41fd78
mov dword [esp + 4], 0x2741
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004379c0
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.0040ccd4
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 0x41fbff
mov si, word [esp + 0x3a]
mov dword [esp + 0x28], 0
jmp 0x41fdc9
call sub.WS2_32.dll_WSAGetLastError
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x41fd22
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004379c0
mov dword [esp + 8], eax
mov dword [esp + 4], str.socket_failure:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040c7a8
jmp 0x41fc40
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.0040c7a8
test ebx, ebx
jne 0x41fbbf
jmp 0x41fc40
mov dword [esp + 4], str.bind___failed__we_ran_out_of_ports_
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040c7a8
jmp 0x41fc2c
mov dword [esp + 4], esi
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00402be8
jmp 0x41fcdf
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004379c0
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.0040c7a8
jmp 0x41fc2c
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov word [esp + 0x3a], 0
jmp 0x41fb47
mov edi, ebx
jmp 0x41fb24
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 0x41ff98
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004379c0
mov dword [esp + 8], eax
mov dword [esp + 4], str.socket_failure:__s
mov edx, dword [esp + 0x30]
mov dword [esp], edx
call fcn.0040c7a8
jmp 0x41fc2c
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.004054b4
cmp dword [esp + 0x3c], 2
je 0x41ffff
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x230]
mov edi, edx
mov esi, dword [esp + 0x3c]
nop
test eax, eax
jne 0x41ffd8
test esi, esi
je 0x41fff0
cmp esi, 1
je 0x41fff3
cmp word [esp + 0x58], 2
je 0x42004c
cmp esi, 1
je 0x41ffff
mov eax, dword [edi + 0x230]
inc esi
jmp 0x41ffd0
cmp word [esp + 0x58], 2
je 0x4200ac
mov eax, 2
mov edx, dword [esp + 0x24]
mov dword [edx + 0x500], eax
mov eax, dword [edx + 0x158]
cmp eax, 0xffffffff
je 0x420025
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00412498
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 0x41fc48
movzx eax, word [esp + 0x5a]
mov dword [esp], eax
call sub.WS2_32.dll_ntohs
push ebp
test esi, esi
jne 0x41ffe5
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.00441ed4
mov ebx, eax
test eax, eax
jne 0x420140
xor eax, eax
jmp 0x420004
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 0x4200cb
mov byte [ecx], bl
inc ecx
inc edx
je 0x4200db
mov bl, byte [edx]
test bl, bl
je 0x4200db
cmp bl, 0x2e
jne 0x4200c5
mov byte [ecx], 0x2c
jmp 0x4200c7
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], 0x5a6ac4
mov eax, dword [esp + 0x24]
add eax, 0x498
mov dword [esp], eax
call fcn.00441ed4
mov ebx, eax
test eax, eax
jne 0x420195
mov eax, 1
jmp 0x420004
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.0040c7a8
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00412498
mov eax, dword [esp + 0x24]
mov dword [eax + 0x500], 1
mov dword [eax + 0x50c], 0
mov dword [esp + 0x34], ebx
jmp 0x41fc48
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.0040c7a8
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00412498
mov eax, dword [esp + 0x24]
mov dword [eax + 0x50c], 0
mov dword [esp + 0x34], ebx
jmp 0x41fc48