Function at 0x4c2990
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a230
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5a3604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 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.004c2ce0
mov byte [ebp - 0x12], al
movzx ecx, byte [ebp - 0x12]
test ecx, ecx
jne 0x4c2a26
mov dword [ebp - 0x34], 1
push 0x59733c
lea edx, [ebp - 0x34]
push edx
call fcn.004f69d2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004c2f30
mov byte [ebp - 0x13], al
movzx ecx, byte [ebp - 0x13]
test ecx, ecx
jne 0x4c2a52
mov dword [ebp - 0x38], 4
push 0x59733c
lea edx, [ebp - 0x38]
push edx
call fcn.004f69d2
mov ecx, dword [ebp - 0x18]
call fcn.004c2fc0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx + 4], 0x194
jne 0x4c2a87
mov dword [ebp - 0x40], 5
push 0x59733c
lea eax, [ebp - 0x40]
push eax
call fcn.004f69d2
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4c2ab1
mov dword [ebp - 0x44], 4
push 0x59733c
lea ecx, [ebp - 0x44]
push ecx
call fcn.004f69d2
cmp dword [ebp - 0x2c], 0x800000
jbe 0x4c2acf
mov dword [ebp - 0x48], 0xc
push 0x59733c
lea edx, [ebp - 0x48]
push edx
call fcn.004f69d2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00509d2e
add esp, 4
mov dword [ebp - 0x28], eax
push 0x1000
call fcn.00509d2e
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, 1
test ecx, ecx
je 0x4c2bac
cmp dword [ebp - 0x20], 0x1000
jbe 0x4c2b1f
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004ff369
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00509d2e
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4c2b51
mov dword [ebp - 0x4c], 8
push 0x59733c
lea eax, [ebp - 0x4c]
push eax
call fcn.004f69d2
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x24]
push eax
call fcn.004f4b10
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4c2b9b
mov dword [ebp - 0x50], 8
push 0x59733c
lea edx, [ebp - 0x50]
push edx
call fcn.004f69d2
cmp dword [ebp - 0x20], 0
ja 0x4c2ba7
mov byte [ebp - 0x11], 1
jmp 0x4c2bac
jmp 0x4c2aee
jmp 0x4c2bc0
mov dword [ebp - 4], 0xffffffff
jmp 0x4c2bd0
cmp dword [ebp - 0x1c], 0
je 0x4c2be2
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004ff369
add esp, 4
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x4c2bfc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x4c2c08
mov edx, dword [ebp - 0x28]
push edx
call fcn.004ff369
add esp, 4
mov al, byte [ebp - 0x11]
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