Function at 0x4844b6
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5acbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x6274d0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x6274d0]
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 0x484569
lea eax, [esp + 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
cmp ebx, eax
je 0x484541
mov esi, ebx
call fcn.004c601a
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.0055d7fe
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 0x4845a4
cmp dword [edi + 0x2c], eax
ja 0x484711
jb 0x4845a4
cmp dword [edi + 0x28], ecx
jae 0x484711
cmp dword [esp + 0x14], esi
je 0x484722
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x4845c4
push esi
call fcn.0047bae8
test al, al
jne 0x484675
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 0x48468e
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x484711
cmp eax, dword [esp + 0x14]
lea eax, [esp + 0x18]
jb 0x4845f9
lea eax, [esp + 0x14]
mov esi, dword [eax]
lea eax, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.00429199
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 0x48477d
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.00429199
mov eax, dword [esp + 0x1c]
add dword [edi + 0x28], eax
adc dword [edi + 0x2c], 0
cmp dword [esp + 0x14], eax
jae 0x484651
and dword [esp + 0x14], 0
jmp 0x484655
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.0043d612
xor esi, esi
jmp 0x484584
lea ebx, [esp + 0xfc]
call fcn.00485ad3
push 0x5ffbe4
mov eax, ebx
push eax
call fcn.005676bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x44]
push eax
call fcn.00409ac6
mov ebx, eax
push str.WinHttpQueryDataAvailable_failed_with
push ebx
mov byte [esp + 0x1a8], 2
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push ebx
call fcn.0040d432
lea eax, [esp + 0xe0]
push eax
mov eax, ebx
call fcn.00409b30
mov byte [esp + 0x1a0], 3
cmp edi, esi
jle 0x4846e5
and edi, 0xffff
or edi, 0x80070000
push 0x208
push edi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.00483163
push 0x5ffd6c
lea eax, [esp + 0x100]
jmp 0x484688
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x48471f
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 0x484754
mov esi, ebx
call fcn.004c601a
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 0x484764
push dword [esp + 0x34]
call fcn.0055e74f
pop ecx
cmp dword [esp + 0x20], esi
je 0x484541
push dword [esp + 0x20]
call fcn.0055e74f
pop ecx
jmp 0x484541
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call fcn.00409ac6
mov edi, eax
push str.WinHttpReadData_failed_with
push edi
mov byte [esp + 0x1a8], 4
call fcn.0040fa1f
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [esp + 0xe0]
push eax
mov eax, edi
call fcn.00409b30
mov byte [esp + 0x1a0], 5
test esi, esi
jle 0x4847d4
and esi, 0xffff
or esi, 0x80070000
push 0x226
push esi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.00483163
push 0x5ffd6c
lea eax, [esp + 0x100]
jmp 0x484688