Function at 0x47e3a0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a9682
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
je 0x47e633
push 0x208
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call fcn.004863a0
push 0x104
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.00486dcb
add esp, 0x18
test eax, eax
je 0x47e633
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e633
lea ecx, [esp + 0x24]
call fcn.0047f690
test al, al
je 0x47e633
add dword [0x4d1450], 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040f390
mov esi, eax
push str.File:
lea ecx, [esp + 0x24]
mov dword [esp + 0x24c], edi
call fcn.0040f390
mov byte [esp + 0x248], 1
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push 0x4bfa08
mov esi, 0x4d1508
call fcn.00481e10
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0040f420
lea ecx, [esp + 0x18]
mov dword [esp + 0x248], 0xffffffff
call fcn.0040f420
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
cmp esi, edi
jne 0x47e62f
cmp dword [ebp + 0xc], edi
je 0x47e62f
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f390
push 4
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x250], 2
call fcn.0041f800
push str..tmp
mov ecx, eax
mov byte [esp + 0x24c], 3
call fcn.00421e10
test eax, eax
lea ecx, [esp + 0x18]
setne bl
mov byte [esp + 0x248], 2
call fcn.0040f420
test bl, bl
je 0x47e616
lea ecx, [esp + 0x10]
call fcn.0040f1d0
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 4
call fcn.004108d0
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040f4b0
push 0x104
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 5
call fcn.0040f630
push eax
push edi
push 0x4bd07c
lea ecx, [esp + 0x28]
call fcn.0040f0f0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040f6c0
test edi, edi
jne 0x47e5a5
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push str._s.tmp
push edx
call fcn.00413ba0
add esp, 0xc
jmp 0x47e5b9
push 1
lea ecx, [esp + 0x14]
call fcn.0040f0f0
push eax
call fcn.0047e3a0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0040f0f0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00486fcd
add esp, 8
test eax, eax
push 4
push 0
jne 0x47e5ea
lea ecx, [esp + 0x18]
call fcn.0040f0f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x47e5f7
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
lea ecx, [esp + 0x1c]
call fcn.0040f420
lea ecx, [esp + 0x10]
call fcn.0040f420
lea ecx, [esp + 0x14]
call fcn.0040f420
mov eax, esi
jmp 0x47e635
push 4
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0040f420
mov eax, esi
jmp 0x47e635
xor eax, eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004851ae
mov esp, ebp
pop ebp
ret