Function at 0x49c84b
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564dcf
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov edi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1a0], ebx
cmp dword [edi + 0x20], ebx
jne 0x49c917
lea eax, [esp + 0x20]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x49c8e4
call fcn.004e7046
mov eax, esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x20]
call fcn.004e7046
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x1a0], 1
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
mov edx, ecx
or edx, eax
je 0x49c952
cmp dword [edi + 0x2c], eax
ja 0x49cabe
jb 0x49c952
cmp dword [edi + 0x28], ecx
jae 0x49cabe
cmp dword [esp + 0x10], ebx
je 0x49cacf
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x49c972
push ebx
call fcn.00491e21
test al, al
jne 0x49ca22
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x49ca3b
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49cabe
cmp eax, dword [esp + 0x10]
lea eax, [esp + 0x18]
jb 0x49c9a7
lea eax, [esp + 0x10]
mov esi, dword [eax]
lea eax, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.0042c6dd
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x49cb16
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0042c6dd
mov eax, dword [esp + 0x1c]
add dword [edi + 0x28], eax
adc dword [edi + 0x2c], ebx
cmp dword [esp + 0x10], eax
jae 0x49c9fc
mov dword [esp + 0x10], ebx
jmp 0x49ca00
sub dword [esp + 0x10], eax
push dword [esp + 0x30]
lea ecx, [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
call fcn.00489fef
mov esi, dword [esp + 0x14]
jmp 0x49c932
lea ebx, [esp + 0xfc]
call fcn.0049deaf
push 0x5c9828
mov eax, ebx
push eax
call fcn.0051eb2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call fcn.00403689
mov edi, eax
push str.WinHttpQueryDataAvailable_failed_with
push edi
mov byte [esp + 0x1a8], 2
call fcn.00405d65
pop ecx
pop ecx
push esi
push edi
call fcn.0041058a
lea eax, [esp + 0xe0]
push eax
mov eax, edi
call fcn.004036f3
mov byte [esp + 0x1a0], 3
cmp esi, ebx
jle 0x49ca92
and esi, 0xffff
or esi, 0x80070000
push 0x222
push esi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0049b453
push 0x5c9938
lea eax, [esp + 0x100]
jmp 0x49ca35
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x49cacc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0x20], ebx
lea eax, [esp + 0x20]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x49cb08
call fcn.004e7046
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x34]
call fcn.004e7046
jmp 0x49c8e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call fcn.00403689
mov edi, eax
push str.WinHttpReadData_failed_with
push edi
mov byte [esp + 0x1a8], 4
call fcn.00405d65
pop ecx
pop ecx
push esi
push edi
call fcn.0041058a
lea eax, [esp + 0xe0]
push eax
mov eax, edi
call fcn.004036f3
mov byte [esp + 0x1a0], 5
cmp esi, ebx
jle 0x49cb6d
and esi, 0xffff
or esi, 0x80070000
push 0x240
push esi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0049b453
push 0x5c9938
lea eax, [esp + 0x100]
jmp 0x49ca35