Function at 0x41d790
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4428d8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa8
mov eax, dword [0x4511b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0041e300
mov byte [ebp - 0xb5], al
movzx ecx, byte [ebp - 0xb5]
test ecx, ecx
jne 0x41d838
mov dword [ebp - 0xb4], 1
push 0x44d544
lea eax, [ebp - 0xb4]
push eax
call fcn.0042cacd
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0041e260
mov byte [ebp - 0xb5], al
movzx ecx, byte [ebp - 0xb5]
test ecx, ecx
jne 0x41d870
mov dword [ebp - 0xb0], 4
push 0x44d544
lea eax, [ebp - 0xb0]
push eax
call fcn.0042cacd
lea ecx, [ebp - 0x50]
call fcn.0040d450
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0041e1c0
mov byte [ebp - 0xb5], al
mov cl, byte [ebp - 0xb5]
mov byte [ebp - 0x51], cl
movzx eax, byte [ebp - 0x51]
test eax, eax
je 0x41d8e3
push 0
push 0x44733c
lea ecx, [ebp - 0x50]
call fcn.00411610
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
cmp eax, dword [0x4466b8]
je 0x41d8e3
mov dword [ebp - 0xac], 5
push 0x44d544
lea eax, [ebp - 0xac]
push eax
call fcn.0042cacd
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x41d913
mov dword [ebp - 0xa8], 4
push 0x44d544
lea eax, [ebp - 0xa8]
push eax
call fcn.0042cacd
cmp dword [ebp - 0x28], 0x800000
jbe 0x41d937
mov dword [ebp - 0xa4], 0xc
push 0x44d544
lea eax, [ebp - 0xa4]
push eax
call fcn.0042cacd
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042a5ca
add esp, 4
mov dword [ebp - 0x20], eax
push 0x1000
call fcn.0042a5ca
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, 1
test eax, eax
je 0x41da20
cmp dword [ebp - 0x2c], 0x1000
jbe 0x41d987
mov eax, dword [ebp - 0x24]
push eax
call fcn.0042a511
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a5ca
add esp, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x41d9bf
mov dword [ebp - 0xa0], 8
push 0x44d544
lea eax, [ebp - 0xa0]
push eax
call fcn.0042cacd
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x34]
push edx
call fcn.0042a1b0
add esp, 0xc
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x41da0f
mov dword [ebp - 0x9c], 8
push 0x44d544
lea eax, [ebp - 0x9c]
push eax
call fcn.0042cacd
cmp dword [ebp - 0x2c], 0
ja 0x41da1b
mov byte [ebp - 0x19], 1
jmp 0x41da20
jmp 0x41d956
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00406570
jmp 0x41da47
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x41da60
mov eax, dword [ebp - 0x24]
push eax
call fcn.0042a511
add esp, 4
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x41da7a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
jmp 0x41da86
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042a511
add esp, 4
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042a65e
mov esp, ebp
pop ebp
ret 0xc