Function at 0x10007bca
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Print debug messages
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x1002a4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ecx
push esi
push edi
push eax
mov dword [ebp - 0x464], edx
mov dword [ebp - 0x41c], eax
call ebx
xor ecx, ecx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
push ecx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x418], ecx
push eax
mov dword [ebp - 0x420], ecx
mov esi, ecx
mov dword [ebp - 0x460], ecx
call fcn.1000dc70
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1000dc70
xor ecx, ecx
mov dword [ebp - 0x45c], 0x3c
mov eax, 0x104
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x448], eax
add esp, 0x18
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x43c], ecx
push str.hhhhh_1
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x428], ecx
call ebx
mov edx, dword [ebp - 0x41c]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x41c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x418]
jne 0x10007cc5
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x45c]
push eax
push 0x80000000
sar ecx, 1
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x10007e64
push str.hhhhh_2
call ebx
xor eax, eax
push eax
push eax
push eax
push eax
push str.WinSAP_http__1.4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
push str.hhhhh_4
mov dword [ebp - 0x468], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x10007d86
xor eax, eax
push eax
push 0x50
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
xor ebx, ebx
mov dword [ebp - 0x460], eax
test eax, eax
je 0x10007d88
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x414]
push ecx
push 0x10027290
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10007d88
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
je 0x10007e3b
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
jmp 0x10007d88
xor ebx, ebx
test edi, edi
je 0x10007e3b
xor ecx, ecx
mov dword [ebp - 0x418], 4
push ecx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], ecx
push eax
lea eax, [ebp - 0x41c]
push eax
push ecx
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10007e3b
cmp dword [ebp - 0x41c], 0xc8
jne 0x10007e3b
xor eax, eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10007e28
cmp dword [ebp - 0x418], 0
je 0x10007e23
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x418]
mov eax, dword [ebp - 0x464]
add eax, ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10007e3b
add ebx, dword [ebp - 0x418]
cmp dword [ebp - 0x418], 0
ja 0x10007dce
jmp 0x10007e3b
xor edi, edi
inc edi
jmp 0x10007e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.1000b692
pop ecx
pop ecx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x10007e48
push esi
call ebx
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x10007e55
push eax
call ebx
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x10007e62
push eax
call ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100099f1
mov esp, ebp
pop ebp
ret