Function at 0x1001ab60
Capabilities:
Initialize winhttp library
Prepare http request
Print debug messages
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074d96
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x100934c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x94]
call fcn.1001bd30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.1001bd30
mov byte [ebp - 4], 1
push 0x3c
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.10058400
add esp, 0xc
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x5c], 1
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.1000de10
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x1001ac4d
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.1001aa90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001aa90
jmp 0x1001af52
cmp dword [ebp - 0x70], 0
jne 0x1001ac5a
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x68], 0
jne 0x1001ac67
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x94]
call fcn.1001aac0
test eax, eax
je 0x1001ac92
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x50]
call fcn.1001aac0
test eax, eax
jne 0x1001acbc
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.1001aa90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001aa90
jmp 0x1001af52
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1001acff
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.1001aa90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001aa90
jmp 0x1001af52
mov dword [ebp - 0x48], 0
push 0
movzx eax, word [ebp - 0x74]
push eax
lea ecx, [ebp - 0x94]
call fcn.1004dbd0
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x1001ad56
mov dword [ebp - 0x38], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.1001aa90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001aa90
jmp 0x1001af52
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x44], 0
xor edx, edx
cmp dword [ebp - 0x80], 2
setne dl
sub edx, 1
and edx, 0x800000
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.1004dbd0
push eax
push 0x10080b00
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x3c], eax
push 0x1770
push 0x1770
push 0x1770
push 0x1770
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x44], 4
push 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push 0x20000013
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1001af15
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1001af09
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.100546a1
add esp, 4
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x98]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10058400
add esp, 0xc
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push 0x1007ce43
lea ecx, [ebp - 0xb4]
call fcn.10005790
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.10005b80
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.10054d4f
add esp, 4
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.1001afa0
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xc8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10005810
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.10004600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.10004600
cmp dword [ebp - 0x4c], 0
ja 0x1001ae08
jmp 0x1001af2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb8], eax
push str.Http_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.1001aa90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1001aa90
xor eax, eax
jne 0x1001abae
cmp dword [ebp - 0x3c], 0
je 0x1001af62
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x40], 0
je 0x1001af72
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x34], 0
je 0x1001af82
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053489
mov esp, ebp
pop ebp
ret