Function at 0x41a170
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a520
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x72400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebx], 0
je 0x41a2c5
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41a2c5
cmp byte [ebx + 0x13b8], 1
mov eax, 0x100
mov edx, 0x800100
cmovne edx, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41a1d9
mov eax, dword [eax]
push edx
push 0
push 0
push 0
push eax
push 0x71007c
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x41a2c5
cmp byte [ebx + 0x13b8], 1
jne 0x41a219
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x3300
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x41a2be
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41a2be
mov esi, dword [ebp + 0x10]
push 0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push 0
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41a2b2
mov dword [ebp - 4], 0
mov ecx, esi
push dword [ebp - 0x14]
call fcn.0041bd90
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
push dword [esi]
push 0
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
jmp 0x41a2b5
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41a2db
mov eax, dword [esi]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xa
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x710084
push eax
push dword [esi]
call fcn.004ec73d
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x41a302
mov eax, dword [esi]
mov dword [esi + 4], eax
push dword [ebx]
jmp 0x41a2bf
xor ebx, ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41a393
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41a393
mov eax, dword [esi + 4]
lea edx, [ecx + ebx]
sub eax, dword [esi]
cmp edx, eax
jbe 0x41a345
lea eax, [edx + 0x400]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0041bd90
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
push edx
push ecx
add eax, ebx
mov dword [ebp - 0x1c], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41a2b9
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x1c], eax
jne 0x41a2b9
add ebx, eax
jmp 0x41a304
push ebx
mov ecx, esi
call fcn.0041bd90
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc