Function at 0x48dcf3
Capabilities:
Clear file content
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5325ca
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x58a700]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58a700]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x74]
xor eax, eax
mov dword [esp + 0x28], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], al
cmp dword [0x5912bc], eax
je 0x48dd61
push dword [ebx]
call ebp
push eax
push str._INFO___d___handle_download_finished__begin_result__d_
push 3
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x14
cmp dword [ebx], 0
mov ecx, esi
je 0x48dd72
call fcn.0048dbe7
jmp 0x48e0ae
lea eax, [esp + 0x20]
push eax
call fcn.0048d715
xor eax, eax
push eax
push 0x80
push 3
push eax
push 3
push 0xc0000000
mov dword [esp + 0x84], eax
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x48de5d
mov ecx, dword [esi + 0x54]
push 0
push 0
push dword [ecx + 0x84]
push dword [ecx + 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x48ddf9
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x48ddf9
cmp dword [0x5912bc], 0
je 0x48ddf4
call ebp
push eax
push str._INFO___d___handle_download_finished__check_file_size_ok.
push 3
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
test edi, edi
je 0x48de12
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [esp + 0x17]
test cl, cl
jne 0x48de6b
cmp dword [0x5912bc], 0
je 0x48de42
push eax
call ebp
push eax
push str._ERROR___d___handle_download_finished__read_size_failed__error__d_.
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x14
push dword [esp + 0x18]
mov ecx, esi
push 4
push 0
push 0xd
push dword [esi + 0xa0]
push 0xffffffffffffffff
call fcn.0048ef1b
jmp 0x48ded2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [esp + 0x18], eax
jmp 0x48de18
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi + 0x44]
push dword [esp + 0x24]
call fcn.0050e1b8
pop ecx
pop ecx
test eax, eax
je 0x48deca
call edi
cmp dword [0x5912bc], 0
mov edi, eax
je 0x48deac
push edi
call ebp
push eax
push str._ERROR___d___handle_download_finished__rename_failed__error__d_.
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x14
push edi
push 2
push 0
push 0xd
push dword [esi + 0xa0]
mov ecx, esi
push 0xffffffffffffffff
call fcn.0048ef1b
xor al, al
mov byte [esp + 0x17], al
jmp 0x48dece
mov al, byte [esp + 0x17]
test al, al
jne 0x48dedd
mov dword [ebx], 9
jmp 0x48e09d
push 0x80
lea edi, [esi + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, byte [esi + 0x9c]
test al, al
je 0x48df18
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0048ec37
xor ecx, ecx
inc ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [eax]
cmp dword [eax - 0xc], 3
jle 0x48df1c
mov byte [esp + 0x16], cl
jmp 0x48df21
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x16], 0
test cl, 1
je 0x48df39
and ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00450b32
cmp byte [esp + 0x16], 0
je 0x48e09d
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x48df56
push dword [eax - 0xc]
mov ecx, edi
call fcn.0045085e
push dword [edi]
lea eax, [esp + 0x1c]
push eax
call fcn.0048ec5b
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
call fcn.00450c22
lea edx, [esp + 0x44]
mov byte [esp + 0x6c], 2
lea ecx, [esp + 0x2c]
call fcn.0047ed72
push 0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 4
call fcn.00450f58
cmp dword [0x5912bc], 0
je 0x48dfc8
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call ebp
push eax
push str._INFO___d___handle_download_finished__check_md5__download_pkg_md5__s_.
push 3
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x14
push 0
push 0
lea eax, [esp + 0x34]
mov ecx, esi
push eax
push 0xb
push dword [esi + 0xa0]
push 0xffffffffffffffff
call fcn.0048ef1b
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x48e024
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0048ec37
mov byte [esp + 0x6c], 5
mov ecx, dword [esp + 0x1c]
push 0
or ecx, 2
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
mov ecx, esi
push eax
call fcn.0048e0f9
mov byte [esp + 0x16], 0
test al, al
jne 0x48e029
mov byte [esp + 0x16], 1
mov dword [esp + 0x6c], 4
test byte [esp + 0x1c], 2
je 0x48e044
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.00450b32
movzx eax, byte [esp + 0x17]
xor ecx, ecx
cmp byte [esp + 0x16], cl
cmovne eax, ecx
test al, al
jne 0x48e084
cmp dword [0x5912bc], ecx
je 0x48e076
call ebp
push eax
push str._ERROR___d___handle_download_finished__check_file_md5_failed_
push 1
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x10
mov dword [ebx], 0xb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.0044e987
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00450b32
or dword [esp + 0x6c], 0xffffffff
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.00450b32
cmp dword [0x5912bc], 0
je 0x48e0d1
push dword [ebx]
call ebp
push eax
push str._INFO___d___handle_download_finished__end_result__d_
push 3
push dword [0x5912bc]
call fcn.0047e2a3
add esp, 0x14
xor eax, eax
cmp dword [ebx], eax
sete al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0050061e
add esp, 0x5c
ret 4