Function at 0x1041236e
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0x30
mov eax, 0x1044f986
call fcn.1044d171
mov dword [ebp - 0x28], edx
mov edi, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 4], 2
push esi
push esi
push esi
push esi
mov ecx, 0x10c30e8c
call fcn.10419ced
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, eax
mov dword [ebp - 0x3c], edx
test edx, edx
jne 0x104123cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10412537
push esi
push esi
lea ecx, [ebp + 8]
call fcn.10419ced
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, eax
mov dword [ebp - 0x38], edx
test edx, edx
jne 0x104123f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10412532
mov ecx, 0x800100
test edi, edi
mov eax, 0x100
cmovne eax, ecx
lea ecx, [ebp + 0xc]
push eax
push dword [ebp - 0x28]
push esi
push esi
call fcn.10419ced
push eax
lea ecx, [ebp + 0x10]
call fcn.10419ced
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x1041251e
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x1c]
push dword [ebp - 0x2c]
push 0xffffffffffffffff
push dword [ebp - 0x30]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1041251e
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1041251e
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push 0x20000013
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1041251e
cmp dword [ebp - 0x18], 0xc8
je 0x10412498
xor esi, esi
inc esi
jmp 0x10412526
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push esi
push eax
push ecx
push esi
push 0x20000005
push edi
mov dword [ebp - 0x20], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1041251e
mov eax, dword [ebp - 0x24]
cmp dword [eax], esi
je 0x10412526
push dword [eax]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.10421e67
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
mov dword [ebx], eax
push dword [ecx]
push esi
push eax
call fcn.10426070
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10412511
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebx]
add eax, dword [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10412511
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], esi
jne 0x104124e4
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10412526
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x1041252d
push edi
call ebx
push dword [ebp - 0x38]
call ebx
push dword [ebp - 0x3c]
call ebx
lea ecx, [ebp + 8]
call fcn.1041a6bb
lea ecx, [ebp + 0xc]
call fcn.1041a6bb
lea ecx, [ebp + 0x10]
call fcn.1041a6bb
mov eax, esi
call fcn.1044d11b
ret