Function at 0x1003d6a0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10063040]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
push 0
push 0
push 0
mov edi, ecx
push 0
mov dword [esp + 0x3c], edi
push str.A_WinHTTP_Example_Program_1.0
mov dword [esp + 0x40], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [esp + 0x14], esi
push 0
test esi, esi
jne 0x1003d70a
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0x10052892
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
call fcn.10044560
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004ed27
mov esp, ebp
pop ebp
ret
push 0x50
push str.api.ipify.org
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1003d75c
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x10052892
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.10044560
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004ed27
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0x1005c8fc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x1003d7c3
push dword [esp + 0x10]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [esp + 0x14]
call esi
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x10052892
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.10044560
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004ed27
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1003d807
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1003d807
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x1003d851
mov esi, dword [esp + 0x20]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [edi], xmm0
push 0
mov dword [edi + 0x10], 0
push 0x10052892
mov dword [edi + 0x14], 0
call fcn.10044560
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004ed27
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
cmp esi, 0x7fffffff
ja 0x1003d99f
cmp esi, 0xf
ja 0x1003d88d
push esi
lea eax, [esp + 0x34]
mov dword [esp + 0x44], esi
push 0
push eax
mov dword [esp + 0x50], 0xf
call sub.VCRUNTIME140.dll_memset
mov byte [esp + esi + 0x3c], 0
jmp 0x1003d925
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x1003d8c1
mov eax, Ordinal_2
mov dword [esp + 0x18], Ordinal_2
add eax, 0x23
push eax
call fcn.1004f3be
add esp, 4
test eax, eax
je 0x1003d8eb
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x1003d8fc
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [esp + 0x18], eax
lea ecx, [eax + 1]
test ecx, ecx
je 0x1003d900
cmp ecx, 0x1000
jb 0x1003d8f1
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x1003d9a4
jmp 0x1003d8a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
call fcn.1004f3be
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x18]
push esi
push 0
push ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x28]
mov byte [eax + esi], 0
mov esi, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x44], 0xf
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push ecx
push esi
mov esi, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
mov ecx, dword [esp + 0x5c]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, edi
movups xmm0, xmmword [esp + 0x30]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [edi + 0x10], xmm0
pop edi
pop esi
xor ecx, esp
call fcn.1004ed27
mov esp, ebp
pop ebp
ret
call fcn.1003d2d0
call fcn.1003d230
int3