Function at 0x10079040
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push esi
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [esp + 8]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x18], edi
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x10079214
push ebx
push dword [esp + 0xc]
push 0x7c
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlibcurl_addrinfo.c
push str.ADDR__s:_d_getaddrinfo_____p_n
call fcn.100689f0
mov esi, dword [esp + 0x1c]
add esp, 0x10
test esi, esi
je 0x100791f9
push ebp
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100790bc
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100790b0
sub eax, edx
inc eax
jmp 0x100790be
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x100790cf
lea ebp, [ecx + 0xe]
jmp 0x100790db
cmp ecx, 0x17
jne 0x10079185
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x10079185
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10079185
cmp ecx, ebp
jb 0x10079185
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlibcurl_addrinfo.c
add eax, 0x20
add eax, ebp
push 0x97
push eax
call fcn.10068a60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100791ee
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1002b670
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x10079171
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1002b670
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x10079181
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100790a0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
pop ebp
test esi, esi
je 0x100791bc
push esi
push 0xbe
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlibcurl_addrinfo.c
push str.ADDR__s:_d_freeaddrinfo__p__n
call fcn.100689f0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x100791f5
test edi, edi
je 0x100791dd
mov esi, dword [edi + 0x1c]
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlibcurl_addrinfo.c
push 0x58
push edi
call fcn.100689b0
add esp, 0xc
mov edi, esi
test esi, esi
jne 0x100791c4
mov eax, dword [esp + 0x2c]
xor edi, edi
mov dword [eax], edi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x10
ret
mov ebx, 8
jmp 0x10079194
test edi, edi
jne 0x10079205
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x10
ret
push 0x7c
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlibcurl_addrinfo.c
push str.ADDR__s:_d_getaddrinfo___failed_n
call fcn.100689f0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret