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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40381b
mov eax, dword fs:[0]
push eax
sub esp, 0xa98
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xaa0], edi
mov dword [ebp - 0xa98], edi
mov eax, dword [esi + 0x10]
mov ecx, esi
inc eax
mov dword [ebp - 0xa98], edi
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0xa94], eax
jbe 0x4018b7
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xa88], eax
push ecx
lea ecx, [ebp - 0xa28]
mov dword [ebp - 0xa18], 0
movups xmmword [ebp - 0xa28], xmm0
mov dword [ebp - 0xa14], 0
call fcn.00402340
cmp dword [ebp - 0xa14], 7
lea eax, [ebp - 0xa28]
cmova eax, dword [ebp - 0xa28]
cmp dword [esi + 0x14], 0xf
jbe 0x401914
mov esi, dword [esi]
push dword [ebp - 0xa88]
push eax
push dword [ebp - 0xa94]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0
push 0
push str.A_WinHTTP_Example_Program_1.0
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0xa90], esi
test esi, esi
je 0x401a6e
cmp dword [ebp - 0xa14], 7
lea eax, [ebp - 0x210]
mov dword [ebp - 0xa74], eax
lea ecx, [ebp - 0xa84]
push ecx
lea eax, [ebp - 0xa10]
movlpd qword [ebp - 0xa80], xmm0
mov dword [ebp - 0xa58], eax
lea eax, [ebp - 0xa28]
cmova eax, dword [ebp - 0xa28]
push 0
push dword [ebp - 0xa18]
mov dword [ebp - 0xa78], 0
push eax
movlpd qword [ebp - 0xa6c], xmm0
movlpd qword [ebp - 0xa64], xmm0
mov dword [ebp - 0xa5c], 0
movlpd qword [ebp - 0xa50], xmm0
mov dword [ebp - 0xa84], 0x3c
mov dword [ebp - 0xa70], pe_nt_image_headers32
mov dword [ebp - 0xa54], 0x400
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4019fa
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x401a6b
push 0
push dword [ebp - 0xa6c]
push dword [ebp - 0xa74]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0xa8c], ecx
test ecx, ecx
je 0x4019f1
xor eax, eax
mov edx, 0x800000
cmp dword [ebp - 0xa78], 2
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp - 0xa58]
push 0x404384
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xa88], esi
test esi, esi
jne 0x401aea
push dword [ebp - 0xa8c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xa90]
call esi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push 0
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x404244
mov dword [edi + 0x14], 0
call fcn.004011d0
mov ecx, dword [ebp - 0xa14]
cmp ecx, 7
jbe 0x401acd
mov edx, dword [ebp - 0xa28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ac3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401cea
push ecx
push edx
call fcn.004026fa
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004026bc
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
jne 0x401b15
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xa8c]
jmp 0x401a61
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x401b01
xorps xmm0, xmm0
mov dword [ebp - 0xa2c], 0
movups xmmword [ebp - 0xa44], xmm0
mov dword [ebp - 0xa34], 0
mov dword [ebp - 0xa30], 0xf
mov byte [ebp - 0xa44], 0
mov edi, dword [ebp - 0xa88]
mov byte [ebp - 4], 1
nop dword [eax + eax]
lea eax, [ebp - 0xa48]
mov dword [ebp - 0xa48], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [ebp - 0xa48]
test eax, eax
je 0x401c62
inc eax
push eax
call fcn.00402730
mov esi, eax
mov eax, dword [ebp - 0xa48]
inc eax
mov dword [ebp - 0xa88], esi
push eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 0xa48]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x401c4c
mov eax, dword [ebp - 0xa34]
mov edx, dword [ebp - 0xa30]
mov ecx, dword [ebp - 0xa2c]
mov dword [ebp - 0xa94], eax
mov eax, edx
sub eax, dword [ebp - 0xa94]
mov dword [ebp - 0xa9c], ecx
push ecx
cmp ecx, eax
ja 0x401c32
mov esi, dword [ebp - 0xa94]
cmp edx, 0xf
push dword [ebp - 0xa88]
lea eax, [ecx + esi]
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0xa44]
cmova eax, dword [ebp - 0xa44]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0xa9c]
add esp, 0xc
mov byte [eax + esi], 0
mov esi, dword [ebp - 0xa88]
jmp 0x401c4c
push esi
mov byte [ebp - 0xa98], 0
push dword [ebp - 0xa98]
push ecx
lea ecx, [ebp - 0xa44]
call fcn.00402560
push esi
call fcn.0040272b
add esp, 4
cmp dword [ebp - 0xa48], 0
ja 0x401b60
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0xa8c]
call esi
push dword [ebp - 0xa90]
call esi
mov edi, dword [ebp - 0xaa0]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0xa14]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ebp - 0xa44]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xa34]
movq qword [edi + 0x10], xmm0
cmp ecx, 7
jbe 0x401acd
mov edx, dword [ebp - 0xa28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ac3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401ac3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3