Function at 0x402e40
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4882bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x59339c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.0046cb90
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
mov ecx, 0x59331c
call edx
add eax, 0x10
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
push str._sFFPlaySetupMiniOrg.exe
push ecx
mov dword [ebp - 4], 0
call fcn.00402d10
mov edx, dword [0x59331c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x59331c
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x11c]
push str._sFFPlaySetupMiniOrg_temp.exe
push edx
mov byte [ebp - 4], 1
call fcn.00402d10
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x59331c
call edx
add eax, 0x10
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
push str._sFFPlaySetupMini.exe
push ecx
mov byte [ebp - 4], 2
call fcn.00402d10
mov edx, dword [0x59331c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x59331c
call eax
add eax, 0x10
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x128]
push str._sFFPlaySetup.exe
push edx
mov byte [ebp - 4], 3
call fcn.00402d10
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x59331c
call edx
add eax, 0x10
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
push str._sFFPlaySetupMini.exe.old
push ecx
mov byte [ebp - 4], 4
call fcn.00402d10
mov edx, dword [0x59331c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x59331c
call eax
add eax, 0x10
mov dword [ebp - 0x124], eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x124]
push str._sFFPlaySetup.exe.old
push edx
mov byte [ebp - 4], 5
call fcn.00402d10
mov edi, dword [ebp - 0x12c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push edi
call esi
cmp eax, 0xffffffff
jne 0x4030da
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40303a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x4033ec
mov ebx, dword [ebp - 0x11c]
push ebx
call esi
cmp eax, 0xffffffff
je 0x4030ef
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call esi
cmp eax, 0xffffffff
je 0x40319b
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40316d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403193
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
jmp 0x4030b5
lea ecx, [ebp - 0x1ec]
call fcn.004052c0
push edi
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 6
call fcn.004055d0
lea ecx, [ebp - 0x1ec]
call fcn.00405240
push ebx
lea ecx, [ebp - 0x1ec]
call fcn.004057d0
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40328c
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 5
call fcn.00405380
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40320e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403234
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40325a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403193
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
jmp 0x4030b5
mov ebx, dword [ebp - 0x120]
push ebx
call esi
cmp eax, 0xffffffff
je 0x4032a1
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call esi
cmp eax, 0xffffffff
jne 0x4032d7
mov edi, dword [ebp - 0x118]
push edi
call esi
cmp eax, 0xffffffff
je 0x4032bf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push edi
call esi
cmp eax, 0xffffffff
jne 0x4032d7
mov ecx, dword [ebp - 0x11c]
push 1
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [ebp - 0x124]
push edi
call esi
cmp eax, 0xffffffff
je 0x4032ec
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
mov ebx, dword [ebp - 0x128]
cmp eax, 0xffffffff
jne 0x403322
push ebx
call esi
cmp eax, 0xffffffff
je 0x40330a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
call esi
cmp eax, 0xffffffff
jne 0x403322
mov edx, dword [ebp - 0x11c]
push 1
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 5
call fcn.00405380
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403351
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403397
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret