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

Disassembly:
mov eax, 0x4701a2
call fcn.00453e8c
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
call fcn.0041e56d
test eax, eax
je 0x422e58
xor ebx, ebx
cmp dword [0x495798], ebx
jne 0x422a30
push 0x41b8ae
call fcn.00455661
pop ecx
mov dword [0x495798], eax
mov eax, dword [ebp + 8]
push 1
pop edi
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 8]
mov dword [ebp - 4], edi
cmp eax, ebx
jne 0x422a48
mov eax, 0x475650
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
call fcn.00438879
mov esi, eax
cmp esi, ebx
je 0x422ab9
lea eax, [ebp + 0xb]
push edi
push eax
push 0x48aaa4
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x422a7b
mov eax, 0x4755fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push 0x48c5a4
push eax
mov dword [ebp - 0x24], 0xc26
call fcn.0040a587
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x18], ebx
je 0x422e58
push dword [ebp - 0x18]
call fcn.00438843
jmp 0x422e58
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
push 0x48c574
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call fcn.004388c1
mov esi, eax
cmp esi, ebx
je 0x422b47
lea eax, [ebp + 0xb]
push edi
push eax
push 0x48aaa4
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, ebx
jne 0x422afc
mov eax, 0x4755fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push 0x48c524
push eax
mov dword [ebp - 0x24], 0xc30
call fcn.0040a587
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401093
cmp dword [ebp - 0x14], ebx
je 0x422b31
push dword [ebp - 0x14]
call fcn.00438843
cmp dword [ebp - 0x1c], ebx
je 0x422aa3
push dword [ebp - 0x1c]
call fcn.00438843
jmp 0x422aa3
push ebx
push dword [ebp - 0x1c]
call fcn.004388af
mov esi, eax
cmp esi, ebx
je 0x422b9d
lea eax, [ebp + 0xb]
push edi
push eax
push 0x48aaa4
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x422b78
mov eax, 0x4755fc
mov dword [ebp - 0x28], eax
push esi
lea eax, [ebp - 0x28]
push 0x48c4bc
push eax
mov dword [ebp - 0x24], 0xc37
call fcn.0040a587
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
jmp 0x422b1f
mov edi, 0x475620
mov esi, 0x104
cmp dword [ebp - 0x14], ebx
je 0x422bb4
push dword [ebp - 0x14]
call fcn.00438843
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x1c]
call fcn.0043889d
cmp eax, ebx
jne 0x422e16
lea eax, [ebp + 0xb]
push ebx
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x475628
mov dword [ebp - 0x84], edi
call fcn.00403bf5
lea eax, [ebp - 0xbc]
push esi
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], esi
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.0043888b
cmp eax, 0xea
lea ecx, [ebp - 0xbc]
sete bl
mov byte [ebp - 4], 7
call fcn.00402ebf
test bl, bl
je 0x422c87
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
push eax
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.0043888b
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.00402ebf
mov eax, 0x489e3c
mov dword [ebp - 0x54], 0x475628
mov ecx, eax
mov dword [ebp - 0x34], edi
test ecx, ecx
jne 0x422ca1
mov eax, 0x493568
lea ecx, [ebp - 0x29]
push 0
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00403cfd
lea eax, [ebp - 0x54]
push 0
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00405831
test eax, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
sete bl
call fcn.00402424
test bl, bl
je 0x422dfa
lea eax, [ebp - 0x2a]
mov ebx, 0x475628
push 0
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xdc], edi
call fcn.00403bf5
lea eax, [ebp - 0x2b]
push 0
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x5c], edi
call fcn.00403bf5
lea eax, [ebp - 0xb0]
push esi
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
mov byte [eax + 4], 1
call fcn.00403dc2
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xc
call fcn.00402ebf
lea eax, [ebp - 0xc8]
push esi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
mov byte [eax + 4], 1
call fcn.00403dc2
mov ecx, dword [ebp - 0xf4]
mov eax, dword [eax]
test ecx, ecx
mov ebx, 0x475650
jne 0x422d88
mov ecx, ebx
push eax
push 0
push 0x48c4b4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xc
call fcn.00402ebf
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x422daf
mov eax, ebx
push 1
push 2
push eax
push dword [ebp - 0x14]
call fcn.00422e78
add esp, 0x10
test eax, eax
jne 0x422ddf
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x7c]
push eax
call fcn.004231be
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x422dd8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.00402424
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.00402424
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00402424
xor ebx, ebx
jmp 0x422ba7
cmp dword [ebp - 0x14], ebx
je 0x422e23
push dword [ebp - 0x14]
call fcn.00438843
cmp dword [ebp - 0x1c], ebx
je 0x422e30
push dword [ebp - 0x1c]
call fcn.00438843
cmp dword [ebp - 0x18], ebx
je 0x422e3d
push dword [ebp - 0x18]
call fcn.00438843
mov eax, dword [0x495798]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x422e58
push eax
call fcn.00455661
and dword [0x495798], 0
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
leave
ret 4