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

Disassembly:
mov r11, rsp
sub rsp, 0xa18
mov rax, qword [0x005ca070]
mov qword [rsp + COleUpdateDialog::DoModal], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r13
mov r13, qword [rcx]
mov qword [r11 - 0x28], r14
mov rbp, rcx
mov ebx, edx
lea rcx, [r11 - 0x957]
xor r14d, r14d
mov r8d, 0xff
xor edx, edx
mov qword [r11 - 0x30], r15
mov byte [r11 - 0x958], r14b
call sub.msvcrt.dll_memset
mov rsi, qword [r13 + 0x418]
mov qword [rsp + 0x38], r14
mov rdi, qword [r13 + 0x418]
xor r15w, r15w
test rdi, rdi
mov word [rsp + 0x34], r14w
mov r12, r14
je 0x544e79
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x544e79
mov rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
mov eax, socket
not rcx
lea edx, [rax - 0x15]
dec rcx
cmp rcx, rax
cmovb rcx, rax
inc rcx
call qword [case.0x534e6c.2]
test rax, rax
mov r12, rax
jne 0x544d7e
lea eax, [r14 + 0x1b]
jmp 0x545333
cmp byte [rsi], 0x3a
jne 0x544e2b
mov rdi, rsi
test rdi, rdi
je 0x544df4
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
mov rdi, rax
je 0x544df4
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_strtol]
mov edx, 0x2d
mov rcx, rdi
mov esi, eax
mov dword [rsp + 0x34], eax
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x544e70
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_strtol]
cmp si, ax
mov r15d, eax
jbe 0x544df4
xor r15w, r15w
mov word [rsp + 0x34], r14w
cmp byte [r12], r14b
je 0x544e79
mov rax, qword [rbp + 0x50]
lea r8, [rsp + 0x1c0]
mov r9d, 0x401
mov ecx, dword [rax + 4]
mov rdx, r12
call fcn.00556910
lea rdx, [rsp + 0x1c0]
test rax, rax
cmove rdx, r12
jmp 0x544eff
mov edx, 0x3a
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
mov rdi, rax
je 0x544e58
mov r8, rax
mov rdx, rsi
mov rcx, r12
sub r8, rsi
call qword [sym.imp.msvcrt.dll_strncpy]
jmp 0x544d8a
mov rcx, r12
sub rcx, rsi
nop
movzx eax, byte [rsi]
inc rsi
test al, al
mov byte [rcx + rsi - 1], al
jne 0x544e60
jmp 0x544df4
mov r15w, si
jmp 0x544df4
mov rcx, qword [rbp + 0x118]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x544eda
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0052a9d0
lea rdx, str.getsockname___failed:__s
mov rcx, r13
mov r8, rax
call fcn.005374d0
test r12, r12
je 0x5451a5
mov rcx, r12
call qword [fcn.00443590]
mov eax, 0x1e
jmp 0x545333
movzx ecx, word [rsp + 0x40]
lea r8, [rsp + 0x1c0]
lea rdx, [rsp + 0x44]
mov r9d, 0x401
call fcn.00538e40
lea rdx, [rsp + 0x1c0]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, rbp
call fcn.0052c750
cmp eax, 1
jne 0x544f21
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.0053ab90
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x544f38
mov rdi, qword [rdx]
mov rcx, r13
call fcn.0052c980
jmp 0x544f3b
mov rdi, r14
test r12, r12
je 0x544f49
mov rcx, r12
call qword [fcn.00443590]
test rdi, rdi
jne 0x544f65
lea rdx, str.Curl_resolv_failed__we_can_not_recover_
mov rcx, r13
call fcn.005374d0
lea eax, [rdi + 0x1e]
jmp 0x545333
cmp dword [rdi + 8], r14d
jne 0x544f74
mov eax, dword [rbp + 0x8c]
mov dword [rdi + 8], eax
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x544fc0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x544f65
mov edx, eax
mov rcx, rbp
call fcn.0052a9d0
lea rdx, str.socket_failure:__s
mov rcx, r13
mov r8, rax
call fcn.005374d0
lea eax, [rdi + 0x1e]
jmp 0x545333
movsxd r8, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
lea rcx, [rsp + 0x40]
call fcn.004435a0
mov eax, dword [rsp + 0x34]
mov edx, dword [rdi + 0x10]
cmp ax, r15w
mov dword [rsp + 0x30], edx
movzx esi, ax
ja 0x54510b
nop
nop
cmp word [rsp + 0x40], 2
jne 0x545006
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x545105
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2741
jne 0x545078
mov edx, eax
mov rcx, rbp
call fcn.0052a9d0
lea rdx, str.bind_port_hu__failed:__s
movzx r8d, si
mov r9, rax
mov rcx, r13
call fcn.005374d0
mov rcx, qword [rbp + 0x118]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5450b3
mov si, word [rsp + 0x34]
jmp 0x545087
cmp eax, 0x2740
je 0x545084
cmp eax, 0xd
jne 0x5450d2
inc si
cmp si, r15w
jbe 0x544ff0
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r13
call fcn.005374d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x545333
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0052a9d0
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x545194
mov edx, eax
mov rcx, rbp
call fcn.0052a9d0
lea rdx, str.bind_port_hu__failed:__s
movzx r8d, si
mov r9, rax
mov rcx, r13
call fcn.005374d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x545333
cmp si, r15w
jbe 0x54512d
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r13
call fcn.005374d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x545333
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r12
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x545168
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0052a9d0
lea rdx, str.getsockname___failed:__s
mov r8, rax
jmp 0x545194
mov edx, 1
mov rcx, r12
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x5451af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
mov edx, eax
call fcn.0052a9d0
lea rdx, str.socket_failure:__s
mov r8, rax
mov rcx, r13
call fcn.005374d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
jmp 0x545333
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov rcx, rdi
call fcn.0052c490
cmp ebx, 2
je 0x5452f8
movzx eax, word [rsp + 0x40]
cmp byte [rbp + 0x1b1], r14b
jne 0x5451e0
test ebx, ebx
je 0x54520e
cmp ebx, 1
jne 0x5451eb
cmp ax, 2
jne 0x54520e
cmp ax, 2
jne 0x54520e
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
test ebx, ebx
movzx r11d, ax
je 0x545221
cmp ebx, 1
je 0x545271
mov ax, word [rsp + 0x40]
inc ebx
cmp ebx, 2
jne 0x5451d3
lea rdi, [rbp + 0x3d0]
jmp 0x5452ff
cmp word [rsp + 0x40], 2
movzx eax, r11w
lea rdi, [rbp + 0x3d0]
mov dword [rsp + 0x28], eax
setne r14b
lea rax, [rsp + 0xc0]
lea r8, str.EPRT
lea rdx, str._s__d_s_hu
lea r9d, [r14 + 1]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.00556f90
test eax, eax
mov r14d, eax
je 0x5452ff
jmp 0x545333
lea rdi, [rsp + 0x5d0]
lea rdx, [rsp + 0xc0]
mov r8d, 0x2c
movzx ecx, byte [rdx]
test cl, cl
je 0x5452a3
cmp cl, 0x2e
movzx eax, cl
cmove eax, r8d
inc rdi
inc rdx
mov byte [rdi - 1], al
jne 0x545287
movzx r9d, r11w
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
mov rcx, rdi
shr r9d, 8
mov dword [rsp + 0x20], eax
mov byte [rdi], r14b
call fcn.0052b590
lea rdi, [rbp + 0x3d0]
lea r9, [rsp + 0x5d0]
lea r8, str.PORT
lea rdx, str._s__s
mov rcx, rdi
call fcn.00556f90
test eax, eax
mov r14d, eax
je 0x5452ff
jmp 0x545333
lea rdi, [rbp + 0x3d0]
mov dword [rdi + 0x9c], ebx
mov rcx, qword [rbp + 0x120]
cmp rcx, 0xffffffffffffffff
je 0x545318
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x120], r12
mov byte [rbp + 0x1a9], 1
mov eax, r14d
mov dword [rbp + 0x478], 0x1c
mov r15, qword [rsp + 0x9e8]
mov r14, qword [rsp + 0x9f0]
mov r13, qword [rsp + 0x9f8]
mov r12, qword [rsp + 0xa00]
mov rdi, qword [rsp + 0xa08]
mov rsi, qword [rsp + 0xa10]
mov rbp, qword [rsp + 0xa38]
mov rbx, qword [rsp + 0xa30]
mov rcx, qword [rsp + 0x9d0]
call fcn.0055e990
add rsp, 0xa18
ret
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
mov rax, qword [rdx + 0x8810]
cmp dword [rax + 0x18], 0
je 0x545465
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
mov dword [rcx + 0x478], 0xd
add rsp, 0x20
pop rbx
jmp fcn.00548490
cmp byte [rdx + 0x38e], 0
je 0x54547a
xor edx, edx
add rsp, 0x20
pop rbx
jmp 0x544ca0
cmp byte [rdx + 0x3a6], 0
je 0x54551b
mov r8, qword [rcx + 0x450]
test r8, r8
jne 0x5454d5
mov r8, qword [rdx + 0x3f0]
test r8, r8
jne 0x5454b8
cmp byte [rdx + 0x38d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rdx, str.PRET__s
add rcx, 0x3d0
call fcn.00556f90
test eax, eax
je 0x54550b
add rsp, 0x20
pop rbx
ret
add rcx, 0x3d0
cmp byte [rdx + 0x398], 0
je 0x5454fb
lea rdx, str.PRET_STOR__s
call fcn.00556f90
test eax, eax
je 0x54550b
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.00556f90
test eax, eax
jne 0x545520
mov dword [rbx + 0x478], 0x1d
add rsp, 0x20
pop rbx
ret
call fcn.00545390
add rsp, 0x20
pop rbx
ret