Function at 0x10007210
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076dfd
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x1009d0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.10007630
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ecx
cmovae eax, dword [ebp - 0x30]
xorps xmm0, xmm0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x6c], 0
push eax
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x10007516
push 0
push 0
push 0
push 0
push str.GInstaller
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push dword [ebp - 0x5c]
mov esi, eax
mov dword [ebp - 0x80], 0
push dword [ebp - 0x60]
xorps xmm0, xmm0
mov dword [ebp - 0x78], esi
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 0
movups xmmword [ebp - 0x90], xmm0
call fcn.10003c00
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push 0
push dword [ebp - 0x58]
cmovae eax, dword [ebp - 0x90]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [ebp - 0x7c]
mov esi, eax
mov dword [ebp - 0x74], esi
cmp ecx, 8
jb 0x1000735c
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007352
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007569
push ecx
push edx
call fcn.10057feb
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
test esi, esi
je 0x10007516
push dword [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x98], eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], eax
movups xmmword [ebp - 0xa8], xmm0
call fcn.10003c00
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0xa8]
mov edx, 0x800000
cmovae ecx, dword [ebp - 0xa8]
xor eax, eax
cmp dword [ebp - 0x64], 4
cmove eax, edx
push eax
push 0
push 0
push 0
push ecx
push 0x10092c20
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 0x94]
mov esi, eax
cmp ecx, 8
jb 0x1000741a
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007410
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000756e
push ecx
push edx
call fcn.10057feb
add esp, 8
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
test esi, esi
je 0x10007516
push eax
push eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
je 0x1000745d
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test edi, edi
je 0x100074fe
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 5
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x100074a0
mov dword [ebp - 0x14], eax
nop word [eax + eax]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x100074fe
mov eax, dword [ebp - 0x34]
inc eax
push eax
call fcn.10058568
mov ecx, dword [ebp - 0x34]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.1005aaf0
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x34]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push edi
test eax, eax
je 0x100074f6
call fcn.1005801c
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x100074a0
jmp 0x100074fe
call fcn.1005801c
add esp, 4
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x74]
call esi
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x10007516
push eax
call esi
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x1000754c
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10007542
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007573
push ecx
push edx
call fcn.10057feb
add esp, 8
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.10057fdd
mov esp, ebp
pop ebp
ret 4
call fcn.1005e580
call fcn.1005e580
call fcn.1005e580
int3