Function at 0x1001cd02
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 0x1001cea0
cmp dword [ebp + 0x2c], esi
je 0x1001cea0
cmp dword [ebp + 0x30], 2
mov dword [ebx], esi
jne 0x1001cd41
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 0x1001ce9b
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 0x1001cd81
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 0x1001ce73
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 0x1001ce67
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 0x1001ce60
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1001ce60
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001ce60
jmp 0x1001ce56
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp + 0x24], esi
cmp dword [ebp - 0x14], eax
jae 0x1001ce2c
add eax, eax
push eax
mov dword [ebp - 0x14], eax
call fcn.10033575
pop ecx
mov ebx, eax
cmp dword [ebp - 4], esi
je 0x1001ce26
push edi
push dword [ebp - 4]
push ebx
call fcn.100361b0
push dword [ebp - 4]
call fcn.1003363f
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 0x1001ce5d
add edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001ce5d
cmp dword [ebp - 8], esi
ja 0x1001cdf1
jmp 0x1001ce60
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 0x1001ce8d
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
jmp 0x1001ce9b
cmp dword [ebp - 4], esi
je 0x1001ce9b
push dword [ebp - 4]
call fcn.1003363f
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x1001cea2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x2c