Function at 0x404380
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46c9e1
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486d80]
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 [0x48a250]
mov ecx, dword [eax + 0x28]
push 0x48a250
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 0x404476
mov edx, dword [0x488d58]
mov eax, dword [edx + 0xc]
mov ecx, 0x488d58
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.0040d880
test eax, eax
jne 0x40447d
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 0x404476
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4045b2
push 0x800
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0044efc0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x478a24
push esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x488d58]
mov edx, dword [eax + 0xc]
mov ecx, 0x488d58
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x83c], 2
call fcn.00403300
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.00402b70
call fcn.0040ddc0
mov eax, dword [edi]
push eax
call fcn.004049f0
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x40453b
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 0x40452b
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 0x40445d
mov dword [0x48a248], eax
mov ecx, dword [ebp + 0x10]
push str.GetMiniUI4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404507
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 0x404589
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 0x4045ad
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.0044efac
add esp, 0x828
ret 0x10