Function at 0x538db0
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x600], eax
add eax, 0x378
push 0x2f
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ebp - 0x608], ebx
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x618], 0xffffffff
call fcn.0057a870
mov esi, dword [ebx + 0x51c]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x60c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x61c], eax
mov byte [ebp - 0x601], 1
mov dword [ebp - 0x610], eax
test esi, esi
je 0x53907c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x538e40
sub ecx, edx
cmp ecx, 1
jbe 0x53907c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x538e57
sub ecx, edx
cmp ecx, 0x41
jae 0x538e6c
mov ecx, 0x41
jmp 0x538e7a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x538e71
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x63f154]
add esp, 8
mov dword [ebp - 0x610], eax
test eax, eax
jne 0x538ea1
mov ebx, dword [ebp - 0x600]
lea esi, [eax + 0x1b]
jmp 0x539634
mov al, byte [esi]
cmp al, 0x5b
jne 0x538ed3
push 0x5d
push esi
call fcn.0057cf70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x538f51
lea ecx, [esi + 1]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x610]
call fcn.005828a0
add esp, 0xc
jmp 0x538f51
cmp al, 0x3a
jne 0x538edb
mov ebx, esi
jmp 0x538f51
push 0x3a
push esi
call fcn.0057cf70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x538f3c
lea eax, [ebp - 0x5fc]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x538f26
mov ecx, dword [ebp - 0x610]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x538f10
xor esi, esi
xor edx, edx
jmp 0x538fab
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [ebp - 0x610]
call fcn.005828a0
add esp, 0xc
jmp 0x538f51
mov ecx, dword [ebp - 0x610]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x538f44
xor esi, esi
xor edx, edx
test ebx, ebx
je 0x538fab
push 0x3a
push ebx
call fcn.0057cf70
mov ebx, eax
add esp, 8
xor edx, edx
test ebx, ebx
je 0x538fab
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call fcn.00581f3c
push eax
call fcn.00513820
push 0x2d
push ebx
movzx esi, ax
call fcn.0057cf70
add esp, 0x18
test eax, eax
je 0x538fa9
push 0xa
inc eax
push 0
push eax
call fcn.00581f3c
push eax
call fcn.00513820
add esp, 0x10
movzx edx, ax
jmp 0x538fab
mov edx, esi
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp si, dx
mov dword [ebp - 0x61c], eax
mov ebx, eax
movzx eax, si
cmovbe ecx, eax
mov eax, dword [ebp - 0x610]
movzx esi, cx
cmp byte [eax], 0
je 0x539066
mov ebx, dword [ebp - 0x600]
lea ecx, [ebp - 0x57c]
push 0x401
push ecx
push eax
mov eax, dword [ebx + 0x40]
push dword [ebx + 0x444]
add eax, 0x10
push eax
call fcn.0054cfd0
add esp, 4
push eax
mov eax, dword [ebx + 0x40]
push dword [eax]
call fcn.004946b0
add esp, 0x18
sub eax, 0
je 0x539035
sub eax, 1
je 0x53962f
sub eax, 1
jne 0x539043
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x60c], ecx
jmp 0x539045
mov ecx, dword [ebp - 0x610]
mov dword [ebp - 0x60c], ecx
jmp 0x539045
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x620], eax
mov eax, dword [ebp - 0x61c]
movzx esi, ax
mov dword [ebp - 0x61c], esi
test ecx, ecx
jne 0x53912c
jmp 0x539076
mov eax, esi
mov dword [ebp - 0x620], eax
mov eax, ebx
mov dword [ebp - 0x61c], eax
mov ebx, dword [ebp - 0x608]
lea eax, [ebp - 0x614]
mov dword [ebp - 0x614], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5390d6
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005234a0
push eax
push str.getsockname___failed:__s
push ebx
call fcn.00511d20
add esp, 0x18
jmp 0x539629
mov ax, word [ebp - 0x5fc]
push 0x401
cmp ax, 0x17
je 0x5390fc
lea ecx, [ebp - 0x57c]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x5f8]
push ecx
push eax
jmp 0x53910c
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x5f4]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x539629
lea ecx, [ebp - 0x57c]
mov byte [ebp - 0x601], 0
mov dword [ebp - 0x60c], ecx
mov esi, dword [ebp - 0x608]
lea eax, [ebp - 0x628]
push eax
push 0
push 0
push ecx
push esi
call fcn.00517180
add esp, 0x14
cmp eax, 1
jne 0x53915c
lea eax, [ebp - 0x628]
push eax
push esi
call fcn.00506870
add esp, 8
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x539614
mov ebx, dword [eax]
push eax
push esi
call fcn.005174f0
add esp, 8
test ebx, ebx
je 0x539614
mov dword [ebp - 0x60c], 0
nop dword [eax + eax]
lea eax, [ebp - 0x618]
push eax
mov eax, dword [ebp - 0x600]
movzx eax, byte [eax + 0x44f]
push eax
push 0
push ebx
push esi
call fcn.0053f2e0
add esp, 0x14
test eax, eax
je 0x5391ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x60c], eax
test ebx, ebx
jne 0x539190
jmp 0x5391d4
test ebx, ebx
jne 0x5391fa
mov eax, dword [ebp - 0x60c]
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.005234a0
push eax
push str.socket_failure:__s
push esi
call fcn.00511d20
add esp, 0x18
jmp 0x539629
push dword [ebx + 0x10]
lea eax, [ebp - 0x5fc]
push dword [ebx + 0x18]
push eax
call fcn.0057a2f0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x614], eax
mov eax, dword [ebp - 0x620]
cmp ax, word [ebp - 0x61c]
movzx esi, ax
ja 0x5395fe
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [ebp - 0x614]
mov word [ebp - 0x5fa], ax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x539366
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x601], 0
je 0x5392f1
cmp eax, 0x2741
jne 0x5392f1
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.005234a0
push eax
movzx eax, si
mov esi, dword [ebp - 0x608]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.00511de0
add esp, 0x1c
mov dword [ebp - 0x614], 0x80
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x53930a
mov eax, dword [ebp - 0x620]
movzx esi, ax
cmp si, word [ebp - 0x61c]
mov byte [ebp - 0x601], 0
jmp 0x539228
cmp eax, 0x2740
je 0x5392fd
cmp eax, 0xd
jne 0x539336
inc esi
cmp si, word [ebp - 0x61c]
jmp 0x539228
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005234a0
push eax
push str.getsockname___failed:__s
push esi
call fcn.00511d20
add esp, 0x18
jmp 0x539629
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.005234a0
push eax
movzx eax, si
mov esi, dword [ebp - 0x608]
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.00511d20
add esp, 0x1c
jmp 0x539629
cmp si, word [ebp - 0x61c]
ja 0x5395fe
lea eax, [ebp - 0x614]
mov dword [ebp - 0x614], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5393cd
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005234a0
mov esi, dword [ebp - 0x608]
push eax
push str.getsockname___failed:__s
push esi
call fcn.00511d20
add esp, 0x18
jmp 0x539629
push 1
push dword [ebp - 0x618]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x539411
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005234a0
mov esi, dword [ebp - 0x608]
push eax
push str.socket_failure:__s
push esi
call fcn.00511d20
add esp, 0x18
jmp 0x539629
push 0x2f
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.00517130
mov eax, dword [ebp - 0x600]
add esp, 0xc
cmp byte [eax + 0x1d2], 0
jne 0x53943f
cmp byte [eax + 0x1cc], 0
je 0x53943f
mov byte [eax + 0x1d2], 1
cmp edi, 2
je 0x5394a7
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x5fc]
cmp byte [eax + 0x1d2], 0
jne 0x53945e
test edi, edi
je 0x53949b
cmp edi, 1
jne 0x539469
cmp cx, 2
jne 0x53949b
movzx eax, cx
sub eax, 2
je 0x539476
sub eax, 0x15
jne 0x539495
push dword [ebp - 0x5fa]
call esi
movzx ebx, ax
test edi, edi
je 0x539596
cmp edi, 1
je 0x5394fb
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x600]
inc edi
mov dword [ebp - 0x62c], edi
cmp edi, 2
jne 0x539451
mov ebx, dword [ebp - 0x624]
mov esi, dword [ebp - 0x608]
lea eax, [ebp - 0x618]
mov dword [ebx + 0x90], edi
mov ebx, dword [ebp - 0x600]
push eax
push 1
push ebx
push esi
call fcn.0053f0b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x539634
mov ecx, dword [ebp - 0x608]
mov dword [ebp - 0x618], 0xffffffff
mov eax, dword [ecx + 0xc]
mov byte [eax + 0x416], 0x1c
jmp 0x539644
lea edx, [ebp - 0x78]
mov edi, 0x2c
lea esi, [ebp - 0x34]
mov cl, byte [esi]
test cl, cl
je 0x53951d
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0x539506
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call sym.Setup.exe_curl_msnprintf
mov ebx, dword [ebp - 0x624]
lea eax, [ebp - 0x78]
mov esi, dword [ebp - 0x608]
push eax
push str.PORT
push 0x5d3a14
push ebx
push esi
call fcn.0054bc80
mov edi, dword [ebp - 0x62c]
add esp, 0x28
mov dword [ebp - 0x60c], eax
test eax, eax
je 0x5394b3
push eax
call sym.Setup.exe_curl_easy_strerror
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.00511d20
mov ebx, dword [ebp - 0x600]
add esp, 0x10
mov esi, dword [ebp - 0x60c]
jmp 0x539634
mov esi, dword [ebp - 0x608]
movzx eax, bx
mov ebx, dword [ebp - 0x624]
push eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp word [ebp - 0x5fc], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
push esi
call fcn.0054bc80
add esp, 0x1c
mov dword [ebp - 0x60c], eax
test eax, eax
je 0x5394b3
push eax
call sym.Setup.exe_curl_easy_strerror
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.00511d20
mov ebx, dword [ebp - 0x600]
add esp, 0x10
mov esi, dword [ebp - 0x60c]
jmp 0x539634
mov esi, dword [ebp - 0x608]
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.00511d20
add esp, 8
jmp 0x539629
mov eax, dword [ebp - 0x60c]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.00511d20
add esp, 0xc
mov ebx, dword [ebp - 0x600]
mov esi, 0x1e
mov ecx, dword [ebp - 0x608]
mov eax, dword [ecx + 0xc]
mov byte [eax + 0x416], 0
mov eax, dword [ebp - 0x618]
cmp eax, 0xffffffff
je 0x53965a
push eax
push ebx
push ecx
call fcn.0053f2b0
add esp, 0xc
push dword [ebp - 0x610]
call dword [0x63f148]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a6edb
mov esp, ebp
pop ebp
ret