Function at 0x41fd20
Capabilities:
Receive http response

Disassembly:
push 0x17c
mov eax, 0x460ddc
call fcn.0043c4da
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xec], eax
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], eax
cmp dword [edi + 0x18], eax
jne 0x41fd72
lea eax, [ebp - 0xe8]
mov ecx, ebx
push eax
call fcn.00413b3a
jmp 0x41fedc
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 1
mov edx, dword [edi + 0x28]
mov eax, edx
mov ecx, dword [edi + 0x2c]
or eax, ecx
je 0x41fdb1
cmp dword [edi + 0x24], ecx
ja 0x41feb0
jb 0x41fdb1
cmp dword [edi + 0x20], edx
jae 0x41feb0
test esi, esi
je 0x41fec3
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x41fdd3
push ecx
mov ecx, eax
call fcn.00421507
test al, al
jne 0x41fef1
and dword [ebp - 0xc8], 0
lea eax, [ebp - 0xc8]
push eax
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41ff97
cmp dword [ebp - 0xc8], 0
je 0x41feb0
cmp dword [ebp - 0xc8], esi
lea ecx, [ebp - 0xd0]
lea eax, [ebp - 0xc8]
cmovae eax, ecx
lea ecx, [ebp - 0xdc]
mov eax, dword [eax]
push eax
mov dword [ebp - 0xc8], eax
call fcn.00417d41
and dword [ebp - 0xcc], 0
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xc8]
push dword [ebp - 0xdc]
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41ff0e
push dword [ebp - 0xcc]
lea ecx, [ebp - 0xdc]
call fcn.00417d41
mov eax, dword [ebp - 0xcc]
add dword [edi + 0x20], eax
adc dword [edi + 0x24], 0
cmp esi, eax
jae 0x41fe79
xor esi, esi
jmp 0x41fe7b
sub esi, eax
mov byte [ebp - 0xc4], 0
lea ecx, [ebp - 0xe8]
push dword [ebp - 0xc4]
mov dword [ebp - 0xd0], esi
push dword [ebp - 0xd8]
push dword [ebp - 0xdc]
push dword [ebp - 0xe4]
call fcn.004146ad
jmp 0x41fd91
cmp dword [edi + 0x18], 0
je 0x41febf
push dword [edi + 0x18]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and dword [edi + 0x18], 0
lea eax, [ebp - 0xe8]
mov ecx, ebx
push eax
call fcn.00413b3a
lea ecx, [ebp - 0xdc]
call fcn.00408971
lea ecx, [ebp - 0xe8]
call fcn.00408971
mov eax, ebx
call fcn.0043c484
ret 0xc
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00423f25
push 0x487cd4
lea eax, [ebp - 0xa4]
push eax
call fcn.00440ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x188]
mov dword [ebp - 0xc4], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push str.WinHttpReadData_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [edi + 0x30]
mov ecx, esp
push eax
call fcn.0040635c
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x2b5
cmovle eax, esi
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041e773
push 0x487db8
lea eax, [ebp - 0xc0]
jmp 0x41ff08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x188]
mov dword [ebp - 0xc4], esi
call fcn.00406224
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push str.WinHttpQueryDataAvailable_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [edi + 0x30]
mov ecx, esp
push eax
call fcn.0040635c
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0x296
cmovle eax, esi
jmp 0x41ff76