Function at 0x1000baf0
Capabilities:
Initialize winhttp library
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039960
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000bb43
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000bb54
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x1000bb65
push eax
call edi
mov dword [esi + 8], 0
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 8], eax
test eax, eax
jne 0x1000bba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_error:_d_r_n
call fcn.1000a4a0
add esp, 8
mov dword [esi + 0x28], 1
xor al, al
jmp 0x1000bd29
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x44]
call fcn.1000a4d0
mov ecx, dword [ebp - 0x14]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x1000bc03
mov byte [esi + 4], 1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1000bc38
call edi
push eax
push str.WinHttpConnect_error:_d_r_n
call fcn.1000a4a0
add esp, 8
cmp dword [esi + 0xc], 0
jne 0x1000bc4c
mov dword [esi + 0x28], 2
xor bl, bl
jmp 0x1000bcef
xor ecx, ecx
mov eax, 0x800000
cmp byte [esi + 4], cl
cmovne ecx, eax
cmp dword [ebp - 0x18], 8
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
mov ecx, esi
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.1000ac00
test al, al
je 0x1000bcdb
cmp byte [esi + 4], 0
je 0x1000bc92
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x3301
push eax
push 0x1f
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push dword [ebp - 0x4c]
mov ecx, esi
push ebx
call fcn.1000bd50
test al, al
jne 0x1000bcbc
call edi
push eax
push str.WinHttpSendRequest_error:_d_r_n
call fcn.1000a4a0
add esp, 8
mov dword [esi + 0x28], 3
xor bl, bl
jmp 0x1000bcef
push 0
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1000bce6
call edi
push eax
push str.WinHttpReceiveResponse_error:_d_r_n
call fcn.1000a4a0
add esp, 8
mov dword [esi + 0x28], 1
xor bl, bl
jmp 0x1000bcef
mov dword [esi + 0x28], 0
mov bl, 1
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1000bd01
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100036b0
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x1000bd27
inc ecx
push ecx
push dword [ebp - 0x44]
call fcn.100036b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 0x10