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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x28]
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x1001cd21
cmp dword [ebp + 0x2c], esi
je 0x1001cd21
cmp dword [ebp + 0x30], 2
mov dword [ebx], esi
jne 0x1001cbc2
mov dword [ebp - 0x10], 0x800000
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x1001cd1c
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
je 0x1001cc02
push eax
push eax
push eax
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp dword [ebp + 0x30], esi
je 0x1001ccf4
push dword [ebp - 0x10]
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp + 0x14], ebx
cmp ebx, esi
je 0x1001cce8
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push 0xffffffffffffffff
push dword [ebp + 0x1c]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1001cce1
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1001cce1
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001cce1
jmp 0x1001ccd7
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp + 0x24], esi
cmp dword [ebp - 0x14], eax
jae 0x1001ccad
add eax, eax
push eax
mov dword [ebp - 0x14], eax
call fcn.10033407
pop ecx
mov ebx, eax
cmp dword [ebp - 4], esi
je 0x1001cca7
push edi
push dword [ebp - 4]
push ebx
call fcn.10036010
push dword [ebp - 4]
call fcn.100334d1
add esp, 0x10
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, edi
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1001ccde
add edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001ccde
cmp dword [ebp - 8], esi
ja 0x1001cc72
jmp 0x1001cce1
mov dword [ebp - 0xc], esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp + 0x30]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0xc], esi
je 0x1001cd0e
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
jmp 0x1001cd1c
cmp dword [ebp - 4], esi
je 0x1001cd1c
push dword [ebp - 4]
call fcn.100334d1
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x1001cd23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x2c