Function at 0x4040e0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46bb51
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x830]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x840]
mov eax, dword [esp + 0x844]
mov ecx, dword [esp + 0x848]
mov edx, dword [esp + 0x84c]
mov dword [esp + 0x20], vtable.CResourceUnpack.0
lea edi, [esp + 0x18]
push edi
push edx
push ecx
xor esi, esi
mov dword [esp + 0x844], esi
push eax
mov eax, dword [0x4891e8]
mov ecx, dword [eax + 0x28]
push 0x4891e8
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
cmp eax, esi
je 0x4041d6
mov edx, dword [0x487cf8]
mov eax, dword [edx + 0xc]
mov ecx, 0x487cf8
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x844], 1
call fcn.0040d860
test eax, eax
jne 0x4041dd
mov byte [esp + 0x838], al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x404312
push 0x800
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0044e220
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x47779c
push esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x83c], 2
call fcn.004032d0
mov ebx, dword [esp + 0x1c]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea edi, [ebp + 8]
lea eax, [esp + 0x18]
call fcn.00402b40
call fcn.0040dda0
mov eax, dword [edi]
push eax
call fcn.004046f0
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x40429b
lea eax, [ebx - 0x10]
mov byte [esp + 0x838], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40428b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x838], 0
lea eax, [esi - 0x10]
jmp 0x4041bd
mov dword [0x4891e4], eax
mov ecx, dword [ebp + 0x10]
push str.GetMiniUI4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404267
call eax
mov edi, dword [edi]
push 4
push 0
push edi
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
add ebx, 0xfffffff0
mov byte [esp + 0x838], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042e9
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea eax, [esi - 0x10]
mov byte [esp + 0x838], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40430d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x830]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0044e20c
add esp, 0x828
ret 0x10