Function at 0x41bb68
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
xor ebx, ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41c022
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
je 0x41bc38
push 0
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
test eax, eax
je 0x41bc0a
mov ecx, 0x74e
mov edx, 0x41c03c
mov eax, 0x41c08c
call fcn.00404328
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jbe 0x41bc38
mov eax, dword [ebp - 0x38]
push eax
call fcn.00405c8c
pop ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
xor eax, eax
push ebp
push 0x41bff2
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x41bfc4
xor eax, eax
push ebp
push 0x41bfbd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpSendRequest
test eax, eax
je 0x41bc87
push 0
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpReceiveResponse
test eax, eax
jne 0x41bc8b
xor eax, eax
jmp 0x41bc8d
mov al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41bcea
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x2f0c
jne 0x41bcea
push 0
push 0
push 0x2f
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpSetOption
push 0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpSendRequest
test eax, eax
je 0x41bcdf
push 0
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpReceiveResponse
test eax, eax
jne 0x41bce3
xor eax, eax
jmp 0x41bce5
mov al, 1
mov byte [ebp - 0xd], al
jmp 0x41bd46
cmp byte [ebp - 0xd], 0
jne 0x41bd46
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x2f8f
jne 0x41bd46
push 4
mov eax, dword [0x424e90]
push eax
push 0x1f
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpSetOption
push 0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpSendRequest
test eax, eax
je 0x41bd3d
push 0
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpReceiveResponse
test eax, eax
jne 0x41bd41
xor eax, eax
jmp 0x41bd43
mov al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41bdb3
lea eax, [ebp - 0x84]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x98]
call fcn.0040c190
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0xb
lea edx, [ebp - 0x94]
mov ecx, 1
mov eax, 0x41c0a8
call fcn.0040bc08
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
jmp 0x41bfac
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20000013
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x41bf8b
mov eax, dword [ebp - 0x14]
sub eax, 0xc8
je 0x41be13
sub eax, 6
je 0x41be13
sub eax, 0xc3
je 0x41be1d
sub eax, 6
je 0x41be1d
jmp 0x41beab
call fcn.00403e58
jmp 0x41bfd4
cmp dword [ebp - 0x2c], 0
jne 0x41bea2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpQueryAuthSchemes
test eax, eax
je 0x41bea2
push ebp
mov eax, dword [ebp - 0x20]
call fcn.0041bb14
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41bea2
cmp dword [ebp - 0x14], 0x197
jne 0x41be7d
push 0
mov eax, dword [ebp + 0xc]
call fcn.00404b74
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpSetCredentials
jmp 0x41bea2
push 0
mov eax, dword [ebp + 0xc]
call fcn.00404b74
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404b74
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpSetCredentials
mov byte [ebp - 0xd], 0
jmp 0x41bfac
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0x14
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpQueryHeaders
mov eax, dword [ebp - 0x38]
add eax, eax
call fcn.0040bbe0
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x41bf79
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 0
push 0x14
mov eax, dword [ebp - 8]
push eax
call sub.Winhttp.dll_WinHttpQueryHeaders
test eax, eax
je 0x41bf58
push 0x41c0b8
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa0]
call fcn.0040a784
push dword [ebp - 0xa0]
push 0x41c0c4
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x34]
call fcn.00404604
push dword [ebp - 0xa4]
lea eax, [ebp - 0x9c]
mov edx, 4
call fcn.0040475c
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
jmp 0x41bf63
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bf80
mov eax, dword [ebp - 0x34]
call fcn.00402a68
ret
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0xa8]
call fcn.0040c190
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00404b64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bfc4
dec dword [ebp - 0xc]
ret
cmp dword [ebp - 8], 0
je 0x41bfd4
cmp dword [ebp - 0xc], 0
jg 0x41bc4b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bff9
cmp dword [ebp - 0x30], 0
je 0x41bff1
mov eax, dword [ebp - 0x30]
push eax
call fcn.00405ca4
pop ecx
ret