Function at 0x41ac20
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 0x474c26
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4934d0]
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.0041c490
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041c490
mov byte [ebp - 4], 1
push 0x3c
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.00458400
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.0040de90
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x41ad0d
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041ab50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041ab50
jmp 0x41b012
cmp dword [ebp - 0x70], 0
jne 0x41ad1a
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x68], 0
jne 0x41ad27
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.0041ab80
test eax, eax
je 0x41ad52
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x50]
call fcn.0041ab80
test eax, eax
jne 0x41ad7c
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041ab50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041ab50
jmp 0x41b012
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 0x41adbf
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041ab50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041ab50
jmp 0x41b012
mov dword [ebp - 0x48], 0
push 0
movzx eax, word [ebp - 0x74]
push eax
lea ecx, [ebp - 0x94]
call fcn.0044cc20
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 0x41ae16
mov dword [ebp - 0x38], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041ab50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041ab50
jmp 0x41b012
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.0044cc20
push eax
push 0x480afc
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 0x41afd5
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41afc9
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004547a6
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.00458400
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 0x47ce43
lea ecx, [ebp - 0xb4]
call fcn.00405820
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.00405c10
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.00454e4f
add esp, 4
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0041b060
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.004058a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00404600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00404600
cmp dword [ebp - 0x4c], 0
ja 0x41aec8
jmp 0x41afec
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.0041ab50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041ab50
xor eax, eax
jne 0x41ac6e
cmp dword [ebp - 0x3c], 0
je 0x41b022
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x40], 0
je 0x41b032
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x34], 0
je 0x41b042
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.00453569
mov esp, ebp
pop ebp
ret