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

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x4532ca
call fcn.0044c764
sub esp, 0x134
push ebx
push esi
push edi
push 6
call fcn.0043a142
mov dword [ebp + 0x4c], eax
mov dword [esp], 0x208
call fcn.0043a142
mov esi, 0x200
push esi
mov dword [ebp + 0x54], eax
call fcn.0043a142
push esi
mov dword [ebp + 0x50], eax
call fcn.0043a142
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 0x4121aa
mov eax, dword [edi + 4]
jmp 0x4121ad
lea eax, [edi + 4]
push dword [ebp + 0x58]
push dword [ebp + 0x50]
push dword [ebp + 0x54]
push dword [ebp + 0x4c]
push eax
call fcn.0043ceac
add esp, 0x14
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040a9c4
push str.._p4p_
lea eax, [ebp]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00414e0f
add esp, 0xc
xor esi, esi
inc esi
mov byte [ebp - 4], 1
mov dword [ebp + 0x48], esi
jmp 0x4121f1
mov edi, dword [ebp + 0x44]
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x4121fd
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41221b
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x412214
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x34], 8
mov ecx, dword [ebp + 0x20]
jae 0x412227
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x412233
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 0x412254
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
mov ecx, edi
call fcn.004017f2
push dword [ebp + 0x58]
lea ecx, [ebp - 0x140]
call fcn.004016bb
mov edi, eax
push dword [ebp + 0x48]
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 2
call fcn.0040a9ea
pop ecx
pop ecx
mov dword [ebp + 0x3c], eax
push dword [ebp + 0x50]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 3
call fcn.004016bb
mov dword [ebp + 0x40], eax
push dword [ebp + 0x54]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.004016bb
mov dword [ebp + 0x38], eax
push dword [ebp + 0x4c]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.004016bb
push dword [ebp + 0x38]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00414e5d
push dword [ebp + 0x40]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00414e5d
push 0x458764
push eax
lea eax, [ebp - 0xec]
push eax
mov byte [ebp - 4], 8
call fcn.00414e0f
push dword [ebp + 0x3c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00414e5d
push 0x458760
push eax
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 0xa
call fcn.00414e0f
push edi
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xb
call fcn.00414e5d
add esp, 0x48
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xc
call fcn.004017f2
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0x124]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0xec]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0xb4]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0x98]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0xd0]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0x108]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.004018a8
inc dword [ebp + 0x48]
cmp byte [ebp + 0x67], bl
je 0x4121ee
push dword [ebp + 0x4c]
call fcn.0043b2b5
push dword [ebp + 0x54]
call fcn.0043b2b5
push dword [ebp + 0x50]
call fcn.0043b2b5
push dword [ebp + 0x58]
call fcn.0043b2b5
add esp, 0x10
push ebx
push esi
lea ecx, [ebp]
call fcn.004018a8
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.004018a8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x5c
leave
ret 4