Function at 0x4572d8
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x47aff9
call fcn.004461a8
sub esp, 0x184
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
cmp dword [ebp + 0x44], 0
mov dword [ebp - 4], 2
mov ebx, 0x104
jne 0x457332
lea eax, [ebp - 0x50]
push ebx
push eax
lea ecx, [ebp + 0x38]
call fcn.004023dd
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00402a6a
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004024ef
sub esp, 0x28
lea ecx, [ebp + 0x38]
mov eax, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00404c7c
call fcn.00458266
add esp, 0x28
lea eax, [ebp - 0x13]
mov edi, 0x47e5e0
mov esi, 0x47e5d8
push 0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], esi
call fcn.004029f5
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
cmp byte [ebp + 0xc], 0
jne 0x457415
lea eax, [ebp - 0xf0]
push eax
call fcn.00456ed2
push eax
lea eax, [ebp - 0x168]
push 0x49b2ac
push eax
mov byte [ebp - 4], 5
call fcn.004155c8
push 0x4933f0
push eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 6
push eax
call fcn.0041a7ee
add esp, 0x1c
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 7
call fcn.0040e001
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00401fe6
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.00401f6c
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
call fcn.00401f6c
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 5
call fcn.00401f6c
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.00401f6c
jmp 0x457474
lea eax, [ebp - 0x50]
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.004023dd
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.00402a6a
mov ecx, dword [ebp + 0x40]
mov eax, dword [eax]
test ecx, ecx
jne 0x45743f
mov ecx, 0x47e608
push eax
push dword [ebp - 0x10]
push 0x49756c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.004024ef
cmp dword [ebp - 0x10], 0
jne 0x457474
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x45746d
mov eax, 0x47e608
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x1c], 0
jne 0x4574d6
lea eax, [ebp - 0x12]
push 1
push eax
push 0x49cc4c
lea ecx, [ebp - 0xa0]
call fcn.00403c0d
lea eax, [ebp - 0x11]
push 1
push eax
push str..tmp
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00403c0d
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0xb
call fcn.00403cd2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00401f6c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
jmp 0x457503
sub esp, 0x28
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x44]
push eax
call fcn.0045db16
lea ecx, [ebp - 0x140]
call fcn.00401f6c
cmp byte [ebp + 0xc], 0
jne 0x457539
lea eax, [ebp - 0x190]
lea ecx, [ebp - 0x44]
push eax
call fcn.00404c7c
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.00401fe6
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 4
call fcn.00401f6c
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
call fcn.004560f5
add esp, 0x28
test al, al
je 0x4575b4
inc dword [ebp - 0x10]
jns 0x457371
mov ecx, dword [ebp + 8]
push 1
pop esi
lea eax, [ebp + 0xf]
push esi
push eax
push 0x49cc4c
call fcn.00408b60
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401f6c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00401f6c
and byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.00401f6c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp byte [ebp + 0xc], 0
jne 0x4575da
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp + 0xc], esp
mov ecx, esp
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403b7a
call fcn.00458266
add esp, 0x28
mov ecx, dword [ebp + 8]
push 1
pop esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0040e08c
mov dword [ebp - 0x18], esi
jmp 0x45757e