Function at 0x47e5c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3988
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x677e70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x24d0]
mov ebx, 0x80004005
mov esi, dword [ebp + 8]
cmp eax, 1
je 0x47e603
test eax, eax
jne 0x47e6d9
cmp dword [edi + 0x2574], 0
jl 0x47e6d9
jg 0x47e61f
cmp dword [edi + 0x2570], 0
jbe 0x47e6d9
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x47e634
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [edi + 0x2574]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push dword [edi + 0x2570]
push str.Range:_bytes_I64d_
push eax
call fcn.00405150
mov esi, dword [ebp - 0x10]
add esp, 0x10
push 0xa0000000
push dword [esi - 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x47e6b7
push str.HttpAddRequestHeaders1_CHttpTask::TryDownload
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0047e190
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47e8fd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47e8fd
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47e6d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
cmp dword [edi + 0x24d0], 1
jne 0x47e76e
mov eax, dword [edi + 0x44]
test eax, eax
je 0x47e73b
push dword [edi + 0x2574]
push dword [edi + 0x2570]
push eax
call fcn.005961ae
add esp, 4
push eax
call fcn.00596415
add esp, 0xc
test eax, eax
sete al
test al, al
je 0x47e73b
mov eax, dword [edi + 0x44]
test eax, eax
je 0x47e73b
push 0
push dword [edi + 0x2574]
push dword [edi + 0x2570]
push eax
call fcn.0058667e
add esp, 0x10
test eax, eax
sete al
test al, al
jne 0x47e76e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x44]
mov esi, eax
test ecx, ecx
je 0x47e75c
push ecx
call fcn.00586344
add esp, 4
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.m_file.Open_CHttpTask::Get
push esi
mov ecx, edi
call fcn.0047e190
jmp 0x47e8fd
push dword [edi + 0x24d8]
push dword [edi + 0x24d4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 0x2548]
mov ecx, 0xea60
push 0
lea eax, [eax + eax*4]
cmp eax, ecx
cmova ecx, eax
push ecx
push dword [edi + 0x24d8]
push dword [edi + 0x24d4]
call dword [sym.imp.USER32.dll_SetTimer]
push str.HttpSendRequest_CHttpTask::TryDownload
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push eax
mov ecx, edi
call fcn.0047ce10
test eax, eax
js 0x47e8fd
push dword [edi + 0x24d8]
push dword [edi + 0x24d4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 0x2548]
mov ecx, 0xea60
push 0
lea eax, [eax + eax*4]
cmp eax, ecx
cmova ecx, eax
push ecx
push dword [edi + 0x24d8]
push dword [edi + 0x24d4]
call dword [sym.imp.USER32.dll_SetTimer]
push 8
call fcn.0053ea92
mov ecx, eax
add esp, 4
mov eax, dword [edi + 0x2508]
mov dword [ecx], eax
mov eax, dword [edi + 0x250c]
push ecx
mov dword [ecx + 4], eax
push dword [edi + 0x24d8]
push 0x8c6
push dword [edi + 0x24d4]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
mov ecx, edi
call fcn.0047cd90
mov ecx, eax
mov dword [ebp + 8], ecx
add ecx, 0xffffff38
cmp ecx, 0xd8
ja case.0x47e861.201
movzx eax, byte [ecx + 0x47e930]
jmp dword [eax*4 + 0x47e914]
push 0
push dword [edi + 0x24d8]
push 0x8d0
push dword [edi + 0x24d4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, 0x80004005
jmp case.0x47e861.201
push esi
mov ecx, edi
call fcn.0047cc00
push esi
mov ecx, edi
mov dword [edi + 0x2568], eax
mov dword [edi + 0x256c], edx
call fcn.0047bbe0
jmp 0x47e8df
push esi
mov ecx, edi
call fcn.0047cc00
add eax, dword [edi + 0x2570]
mov ecx, edi
push esi
adc edx, dword [edi + 0x2574]
mov dword [edi + 0x2568], eax
mov dword [edi + 0x256c], edx
call fcn.0047bbe0
jmp 0x47e8df
mov ebx, 1
jmp case.0x47e861.201
push esi
mov ecx, edi
call fcn.0047ce90
mov ebx, eax
test ebx, ebx
je 0x47e8fd
jmp case.0x47e861.201
mov ebx, 0x8000ffff
cmp dword [ebp + 8], 0x190
jb 0x47e8fd
push esi
mov ecx, edi
call fcn.0047bad0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4