Function at 0x4087f3
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4275ac
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4360c8]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x4360c8]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x234]
push eax
lea ecx, [esp + 0xe0]
mov dword [esp + 0x18], edi
call fcn.00402e45
xor ebx, ebx
mov dword [esp + 0x108], ebx
cmp byte [edi + 0x231], bl
jne 0x408865
push ebx
push 1
jmp 0x408d00
lea ecx, [edi + 0x224]
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
jne 0x40885d
lea eax, [esp + 0x1c]
mov byte [edi + 0x231], bl
call fcn.0040c385
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x20]
mov byte [esp + 0x10c], 1
call fcn.0040c3d9
test al, al
je 0x408c2e
push ebx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xdc], 0xf
call fcn.00403203
xor esi, esi
inc esi
push esi
lea edx, [esp + 0xc4]
lea ecx, [esp + 0x20]
mov byte [esp + 0x10c], 2
call fcn.0040c44f
test al, al
je 0x408bf4
push 0x42f7c8
lea eax, [esp + 0xc4]
call fcn.00402c0e
pop ecx
test al, al
je 0x4088fe
inc dword [esp + 0x10]
push esi
lea edx, [esp + 0xc4]
lea ecx, [esp + 0x20]
call fcn.0040c44f
test al, al
jne 0x4088e4
cmp dword [esp + 0x10], 0xa
jle 0x408bf4
mov dword [esp + 0x34], vtable.NekoGameSDK4th::Base::File::CFile.0
mov byte [esp + 0x38], bl
mov dword [esp + 0x3c], ebx
push 0x42f7dc
lea ecx, [esp + 0x54]
mov byte [esp + 0x10c], 3
call fcn.004032b4
push eax
lea ecx, [edi + 0x250]
push ecx
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x114], 4
call fcn.00402c36
add esp, 0xc
push 0x42f7cc
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x114], 5
call fcn.00404a81
add esp, 0xc
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x110], 6
call fcn.0040148e
pop ecx
pop ecx
push esi
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x110], 7
call fcn.0040a48a
push ebx
push esi
lea ecx, [esp + 0x74]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0x90]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0xac]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x110], 3
call fcn.0040313e
mov eax, dword [esp + 0x20]
lea edi, [esp + 0xc0]
lea esi, [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
call fcn.0040c99f
test al, al
je 0x408ad0
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0xd4], 5
jbe 0x408a6c
xor edi, edi
lea eax, [esp + 0xc0]
call fcn.00402d8e
cmp byte [eax], 0x23
jne 0x408a6c
inc edi
lea eax, [esp + 0xc0]
call fcn.00402d8e
cmp byte [eax], 0x23
jne 0x408a6c
push 2
pop edi
lea eax, [esp + 0xc0]
call fcn.00402d8e
cmp byte [eax], 0x23
jne 0x408a6c
push 3
pop edi
lea eax, [esp + 0xc0]
call fcn.00402d8e
cmp byte [eax], 0x20
jne 0x408a6c
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xa
jg 0x408ab8
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x408a8b
lea eax, [esp + 0xc4]
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
je 0x408ab8
mov edx, dword [ecx]
push 1
push dword [esp + 0xd8]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
je 0x408ab8
mov eax, dword [ecx]
push 1
push 2
push 0x42f7e0
call dword [eax + 0x10]
lea edi, [esp + 0xc0]
lea esi, [esp + 0x1c]
call fcn.0040c99f
test al, al
jne 0x408a11
cmp dword [esp + 0x20], ebx
je 0x408ae0
push dword [esp + 0x20]
call fcn.00407b41
pop ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0040a6ba
cmp dword [esp + 0xf4], 0x10
mov eax, dword [esp + 0xe0]
jae 0x408b11
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x42f7f4
lea ecx, [esp + 0x70]
call fcn.004032b4
push eax
mov byte [esp + 0x10c], 8
mov eax, dword [esp + 0x18]
add eax, 0x250
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00402c36
add esp, 0xc
push str.backup_log.txt
push eax
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x114], 9
call fcn.00404a81
add esp, 0xc
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x110], 0xa
call fcn.0040148e
cmp dword [esp + 0xfc], 0x10
pop ecx
pop ecx
mov ecx, dword [esp + 0xe0]
jae 0x408b94
lea ecx, [esp + 0xe0]
cmp dword [eax + 0x18], 0x10
jb 0x408b9f
mov eax, dword [eax + 4]
jmp 0x408ba2
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x58]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0xac]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0x90]
call fcn.0040313e
push ebx
push esi
lea ecx, [esp + 0x74]
call fcn.0040313e
lea ecx, [esp + 0x34]
mov byte [esp + 0x108], 2
call fcn.0040a45e
mov edi, dword [esp + 0x14]
lea ecx, [edi + 0x224]
mov eax, dword [ecx]
push ebx
lea edx, [esp + 0xe0]
push edx
call dword [eax]
push ebx
lea ecx, [esp + 0xc4]
push esi
test al, al
jne 0x408c1f
mov byte [edi + 0x231], bl
jmp 0x408ce9
mov byte [esp + 0x110], 1
call fcn.0040313e
jmp 0x408c7f
add edi, 0x250
lea ecx, [esp + 0x1b]
call fcn.004021e7
mov ecx, dword [esp + 0x14]
add ecx, 0x224
mov eax, dword [ecx]
push 1
lea edx, [esp + 0xe0]
push edx
call dword [eax]
test al, al
jne 0x408c78
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov byte [eax + 0x231], bl
mov byte [esp + 0x108], bl
call fcn.0040c3c5
jmp 0x40885d
mov edi, dword [esp + 0x14]
xor esi, esi
inc esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [edi + 0x231], 1
call fcn.004012c1
push dword [esp + 0x28]
lea eax, [esp + 0x6c]
push dword [esp + 0x30]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [esp + 0x74]
push str.________________04d__02d__02d__02d:_02d:_02d_______________
push eax
call fcn.00401251
add esp, 0x38
push eax
mov ecx, edi
mov byte [esp + 0x10c], 0xb
call fcn.00408dd8
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.0040313e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x108], bl
call fcn.0040c3c5
push ebx
push esi
lea ecx, [esp + 0xe4]
call fcn.0040313e
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004197af
mov esp, ebp
pop ebp
ret