Function at 0x489d13
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a5b77
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x1c], esi
mov edi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1a0], esi
cmp dword [edi + 0x20], esi
jne 0x489dc6
lea eax, [esp + 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
cmp ebx, eax
je 0x489d9e
mov esi, ebx
call fcn.0043460f
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov eax, ebx
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.0055c9d4
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x1a0], 1
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
mov edx, ecx
or edx, eax
je 0x489e01
cmp dword [edi + 0x2c], eax
ja 0x489f6e
jb 0x489e01
cmp dword [edi + 0x28], ecx
jae 0x489f6e
cmp dword [esp + 0x14], esi
je 0x489f7f
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x489e21
push esi
call fcn.0047efb8
test al, al
jne 0x489ed2
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x489eeb
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x489f6e
cmp eax, dword [esp + 0x14]
lea eax, [esp + 0x18]
jb 0x489e56
lea eax, [esp + 0x14]
mov esi, dword [eax]
lea eax, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.0042b9f3
mov eax, dword [edi + 0x20]
and dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x489fda
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.0042b9f3
mov eax, dword [esp + 0x1c]
add dword [edi + 0x28], eax
adc dword [edi + 0x2c], 0
cmp dword [esp + 0x14], eax
jae 0x489eae
and dword [esp + 0x14], 0
jmp 0x489eb2
sub dword [esp + 0x14], eax
push dword [esp + 0x30]
lea ecx, [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
call fcn.0048a583
xor esi, esi
jmp 0x489de1
lea ebx, [esp + 0xfc]
call fcn.0048b438
push 0x6077b8
mov eax, ebx
push eax
call fcn.00566ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x44]
push eax
call fcn.00403aba
mov ebx, eax
push str.WinHttpQueryDataAvailable_failed_with
push ebx
mov byte [esp + 0x1a8], 2
call fcn.0040635f
pop ecx
pop ecx
push edi
push ebx
call fcn.004109e7
lea eax, [esp + 0xe0]
push eax
mov eax, ebx
call fcn.00403b24
mov byte [esp + 0x1a0], 3
cmp edi, esi
jle 0x489f42
and edi, 0xffff
or edi, 0x80070000
push 0x222
push edi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0048891b
push 0x6078c8
lea eax, [esp + 0x100]
jmp 0x489ee5
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x489f7c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0x20], esi
lea eax, [esp + 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
cmp ebx, eax
je 0x489fb1
mov esi, ebx
call fcn.0043460f
mov eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
xor esi, esi
cmp dword [esp + 0x34], esi
je 0x489fc1
push dword [esp + 0x34]
call fcn.0055da69
pop ecx
cmp dword [esp + 0x20], esi
je 0x489d9e
push dword [esp + 0x20]
call fcn.0055da69
pop ecx
jmp 0x489d9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call fcn.00403aba
mov edi, eax
push str.WinHttpReadData_failed_with
push edi
mov byte [esp + 0x1a8], 4
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004109e7
lea eax, [esp + 0xe0]
push eax
mov eax, edi
call fcn.00403b24
mov byte [esp + 0x1a0], 5
test esi, esi
jle 0x48a031
and esi, 0xffff
or esi, 0x80070000
push 0x240
push esi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0048891b
push 0x6078c8
lea eax, [esp + 0x100]
jmp 0x489ee5