Function at 0x1006f940
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x60
mov eax, dword [0x100ed040]
xor eax, esp
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [edi + 0xc]
mov dword [ecx], 0
mov dword [esp + 0x18], eax
mov byte [eax + 0x28d], 0
cmp dword [edi + 0x78], 0
je 0x1006f999
push 2
push 3
push edi
call fcn.1006b640
add esp, 0xc
push ebp
push ebx
push edi
call fcn.1006fef0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x1006f9ca
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.10064090
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x78], 0
je 0x1006f9db
push 3
push edi
call fcn.1006b680
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x1006fc8c
cmp dword [edi + 0x6e4], 0
mov dword [esp + 0x1c], 0
je 0x1006fa2a
push 1
push edi
call fcn.10053750
push dword [edi + 0x6e8]
mov eax, dword [edi + 0x6e4]
push 0
push dword [edi + 0x9dc]
call eax
push 0
push edi
mov esi, eax
call fcn.10053750
add esp, 0x1c
test esi, esi
jne 0x1006fd3f
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x20]
push eax
push ebx
push 2
call esi
test eax, eax
jle 0x1006fa5f
push ebp
push ebx
lea eax, [esp + 0x28]
push eax
push 2
call fcn.10079230
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1006fc44
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x4c]
push eax
push ebx
push 0x17
call esi
test eax, eax
jle 0x1006fa8e
push ebp
push ebx
lea eax, [esp + 0x54]
push eax
push 0x17
call fcn.10079230
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1006fc44
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x100], 2
jne 0x1006faac
mov eax, dword [edi + 0x70]
mov al, byte [eax + 0xe3]
test al, al
je 0x1006fd3f
push str.localhost
push ebx
call fcn.1006a560
add esp, 8
test eax, eax
je 0x1006fcad
mov eax, 2
xorps xmm0, xmm0
mov word [esp + 0x5c], ax
movzx eax, bp
push eax
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x5e], ax
lea eax, [esp + 0x18]
push eax
push str.127.0.0.1
push 2
call esi
cmp eax, 1
jl 0x1006fcfa
mov eax, dword [esp + 0x18]
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlibhostip.c
push 0x207
push 1
push 0x3a
mov dword [esp + 0x70], eax
call fcn.10068870
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006fcfa
movups xmm0, xmmword [esp + 0x5c]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 4], 2
lea ecx, [eax + 0x10]
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], eax
movups xmmword [eax], xmm0
mov dword [esi + 0x14], ecx
movq xmm0, qword [str.localhost]
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlibhostip.c
push 0x1d9
movq qword [ecx], xmm0
mov ax, word [0x100d2104]
push 1
push 0x46
mov word [ecx + 8], ax
call fcn.10068870
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1006fc3d
push dword [esp + 0x24]
mov eax, 0x17
mov word [esp + 0x34], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
lea eax, [esp + 0x5c]
push eax
push 0x100d52c0
push 0x17
mov dword [esp + 0x40], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1006fbcf
xor ebp, ebp
jmp 0x1006fc3d
movups xmm1, xmmword [esp + 0x5c]
mov dword [ebp], 0
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x18], ecx
mov dword [ebp + 4], 0x17
mov dword [ebp + 8], 1
mov dword [ebp + 0xc], 6
mov dword [ebp + 0x10], 0x1c
mov dword [ebp + 0x1c], 0
movups xmmword [esp + 0x38], xmm1
movups xmm0, xmmword [esp + 0x30]
unpckhpd xmm1, xmm1
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm1
mov dword [ecx + 0x18], 0
add ecx, 0x1c
mov dword [ebp + 0x14], ecx
movq xmm0, qword [str.localhost]
movq qword [ecx], xmm0
mov ax, word [0x100d2104]
mov word [ecx + 8], ax
mov dword [esi + 0x1c], ebp
mov ebp, dword [esp + 0x28]
cmp dword [edi + 0x78], 0
je 0x1006fc57
push 2
push 3
push edi
call fcn.1006b640
add esp, 0xc
push ebp
push ebx
push esi
push edi
call fcn.1006ef60
add esp, 0x10
mov dword [esp + 0x10], eax
cmp dword [edi + 0x78], 0
je 0x1006fc78
push 3
push edi
call fcn.1006b680
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x1006fd38
push esi
call fcn.10079010
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1002897d
add esp, 0x60
ret
cmp byte [esp + 0x80], 0
je 0x1006fccf
cmp byte [edi + 0x73c], 0
je 0x1006fccf
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push edi
call fcn.100933b0
jmp 0x1006fced
push dword [esp + 0x18]
push edi
call fcn.10093390
add esp, 8
test al, al
je 0x1006fd3f
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push edi
call fcn.10079660
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1006fc44
cmp dword [esp + 0x1c], 0
je 0x1006fc8c
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x28d], 0
lea eax, [esp + 0x10]
push eax
push edi
je 0x1006fd1a
call fcn.100934d0
jmp 0x1006fd1f
call fcn.10059430
add esp, 8
test eax, eax
jne 0x1006fd3f
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
mov dword [esp + 0x14], ecx
jmp 0x1006fc8c
xor eax, eax
jmp 0x1006fc90
mov ecx, dword [esp + 0x6c]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002897d
add esp, 0x60
ret