Function at 0x412192
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x453598
call fcn.0044ca14
sub esp, 0x134
push ebx
push esi
push edi
push 6
call fcn.0043a3d2
mov dword [ebp + 0x4c], eax
mov dword [esp], 0x208
call fcn.0043a3d2
mov esi, 0x200
push esi
mov dword [ebp + 0x54], eax
call fcn.0043a3d2
push esi
mov dword [ebp + 0x50], eax
call fcn.0043a3d2
mov edi, dword [ebp + 0x64]
add edi, 8
add esp, 0xc
cmp dword [edi + 0x18], 8
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x44], edi
jb 0x4121f0
mov eax, dword [edi + 4]
jmp 0x4121f3
lea eax, [edi + 4]
push dword [ebp + 0x58]
push dword [ebp + 0x50]
push dword [ebp + 0x54]
push dword [ebp + 0x4c]
push eax
call fcn.0043d13c
add esp, 0x14
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040ad4c
push str.._p4p_
lea eax, [ebp]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00414e63
add esp, 0xc
xor esi, esi
inc esi
mov byte [ebp - 4], 1
mov dword [ebp + 0x48], esi
jmp 0x412237
mov edi, dword [ebp + 0x44]
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x412243
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412261
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x41225a
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x34], 8
mov ecx, dword [ebp + 0x20]
jae 0x41226d
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x412279
lea eax, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne byte [ebp + 0x67]
cmp byte [ebp + 0x67], bl
je 0x41229a
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
mov ecx, edi
call fcn.004017f0
push dword [ebp + 0x58]
lea ecx, [ebp - 0x140]
call fcn.004016c5
mov edi, eax
push dword [ebp + 0x48]
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 2
call fcn.0040ad72
pop ecx
pop ecx
mov dword [ebp + 0x3c], eax
push dword [ebp + 0x50]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.004016c5
mov dword [ebp + 0x40], eax
push dword [ebp + 0x54]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.004016c5
mov dword [ebp + 0x38], eax
push dword [ebp + 0x4c]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.004016c5
push dword [ebp + 0x38]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00414eb1
push dword [ebp + 0x40]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00414eb1
push 0x45976c
push eax
lea eax, [ebp - 0xec]
push eax
mov byte [ebp - 4], 8
call fcn.00414e63
push dword [ebp + 0x3c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00414eb1
push 0x459768
push eax
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 0xa
call fcn.00414e63
push edi
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xb
call fcn.00414eb1
add esp, 0x48
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xc
call fcn.004017f0
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0x124]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0xec]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0xb4]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0x98]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0xd0]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0x108]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.004018a6
inc dword [ebp + 0x48]
cmp byte [ebp + 0x67], bl
je 0x412234
push dword [ebp + 0x4c]
call fcn.0043b545
push dword [ebp + 0x54]
call fcn.0043b545
push dword [ebp + 0x50]
call fcn.0043b545
push dword [ebp + 0x58]
call fcn.0043b545
add esp, 0x10
push ebx
push esi
lea ecx, [ebp]
call fcn.004018a6
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.004018a6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x5c
leave
ret 4