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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100d00b4]
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 0x10008b13
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10008b24
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x10008b35
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 0x10008b5d
mov dword [esi + 0x28], 1
xor al, al
jmp 0x10008cc0
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 - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x40]
call fcn.10006c50
mov ecx, dword [ebp - 0x44]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x10008bbf
mov byte [esi + 4], 1
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
jne 0x10008bee
mov dword [esi + 0x28], 2
xor bl, bl
jmp 0x10008c80
xor ecx, ecx
mov eax, 0x800000
cmp byte [esi + 4], cl
cmovne ecx, eax
cmp dword [ebp - 0x14], 8
push ecx
push 0
push 0
push 0
lea eax, [ebp - 0x28]
mov ecx, str.POST
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp + 0xc], 0
push eax
mov eax, 0x100bafb0
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x10], eax
test eax, eax
je 0x10008c73
cmp byte [esi + 4], 0
je 0x10008c4a
push 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x3300
push ecx
push 0x1f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push dword [ebp - 0x4c]
mov ecx, esi
push ebx
call fcn.10008ce0
test al, al
jne 0x10008c64
mov dword [esi + 0x28], 3
xor bl, bl
jmp 0x10008c80
push 0
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x10008c7e
mov dword [esi + 0x28], 1
xor bl, bl
jmp 0x10008c80
mov bl, 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10008c95
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10009440
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x10008cbe
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.10009440
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.1006c262
mov esp, ebp
pop ebp
ret 0x10