Function at 0x49c367
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565064
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 0x49c433
lea eax, [esp + 0x20]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x49c400
call fcn.00426e9d
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.00426e9d
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.0051497f
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 0x49c46e
cmp dword [edi + 0x2c], eax
ja 0x49c5da
jb 0x49c46e
cmp dword [edi + 0x28], ecx
jae 0x49c5da
cmp dword [esp + 0x10], ebx
je 0x49c5eb
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x49c48e
push ebx
call fcn.00491c88
test al, al
jne 0x49c53e
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 0x49c557
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49c5da
cmp eax, dword [esp + 0x10]
lea eax, [esp + 0x18]
jb 0x49c4c3
lea eax, [esp + 0x10]
mov esi, dword [eax]
lea eax, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.0042c3df
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 0x49c632
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0042c3df
mov eax, dword [esp + 0x1c]
add dword [edi + 0x28], eax
adc dword [edi + 0x2c], ebx
cmp dword [esp + 0x10], eax
jae 0x49c518
mov dword [esp + 0x10], ebx
jmp 0x49c51c
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.00451148
mov esi, dword [esp + 0x14]
jmp 0x49c44e
lea ebx, [esp + 0xfc]
call fcn.0049d9c5
push 0x5c98f0
mov eax, ebx
push eax
call fcn.0051ed55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpQueryDataAvailable_failed_with
push edi
mov byte [esp + 0x1a8], 2
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [esp + 0xe0]
push eax
mov eax, edi
call fcn.00403732
mov byte [esp + 0x1a0], 3
cmp esi, ebx
jle 0x49c5ae
and esi, 0xffff
or esi, 0x80070000
push 0x222
push esi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0049af2e
push 0x5c9a00
lea eax, [esp + 0x100]
jmp 0x49c551
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x49c5e8
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 0x49c624
call fcn.00426e9d
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.00426e9d
jmp 0x49c400
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call fcn.004036c8
mov edi, eax
push str.WinHttpReadData_failed_with
push edi
mov byte [esp + 0x1a8], 4
call fcn.00405d7d
pop ecx
pop ecx
push esi
push edi
call fcn.0041056c
lea eax, [esp + 0xe0]
push eax
mov eax, edi
call fcn.00403732
mov byte [esp + 0x1a0], 5
cmp esi, ebx
jle 0x49c689
and esi, 0xffff
or esi, 0x80070000
push 0x240
push esi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0049af2e
push 0x5c9a00
lea eax, [esp + 0x100]
jmp 0x49c551