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

Disassembly:
mov eax, 0x484642
call fcn.00466fdc
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
call fcn.0041e0b1
test eax, eax
je 0x4226c7
xor esi, esi
cmp dword [0x4ab020], esi
jne 0x4222a9
push 0x41b4d1
call fcn.00468d0b
pop ecx
mov dword [0x4ab020], eax
mov ecx, dword [ebp + 8]
push 1
pop ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call fcn.004042dd
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
call fcn.00437edd
mov edi, eax
cmp edi, esi
je 0x42232b
lea eax, [ebp + 0xb]
push ebx
push eax
push 0x4a165c
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 2
cmp eax, esi
jne 0x4222ed
mov eax, 0x48b67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push 0x4a2f7c
push eax
mov dword [ebp - 0x24], 0xc32
call fcn.0040a552
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x18], esi
je 0x4226c7
push dword [ebp - 0x18]
call fcn.00437ea7
jmp 0x4226c7
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
push 0x4a2f64
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call fcn.00437f25
mov edi, eax
cmp edi, esi
je 0x4223b9
lea eax, [ebp + 0xb]
push ebx
push eax
push 0x4a165c
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, esi
jne 0x42236e
mov eax, 0x48b67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push 0x4a2f14
push eax
mov dword [ebp - 0x24], 0xc3c
call fcn.0040a552
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401093
cmp dword [ebp - 0x14], esi
je 0x4223a3
push dword [ebp - 0x14]
call fcn.00437ea7
cmp dword [ebp - 0x1c], esi
je 0x422315
push dword [ebp - 0x1c]
call fcn.00437ea7
jmp 0x422315
push esi
push dword [ebp - 0x1c]
call fcn.00437f13
mov edi, eax
cmp edi, esi
je 0x42240f
lea eax, [ebp + 0xb]
push ebx
push eax
push 0x4a165c
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
cmp eax, esi
jne 0x4223ea
mov eax, 0x48b67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push 0x4a2eac
push eax
mov dword [ebp - 0x24], 0xc43
call fcn.0040a552
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
jmp 0x422391
cmp dword [ebp - 0x14], esi
je 0x42241c
push dword [ebp - 0x14]
call fcn.00437ea7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x1c]
call fcn.00437f01
cmp eax, esi
jne 0x42267c
lea eax, [ebp - 0x29]
mov edi, 0x48b6a0
push esi
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x48b6a8
mov dword [ebp - 0x84], edi
call fcn.00403cd9
mov eax, 0x104
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 7
push eax
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 8
call fcn.004042dd
lea ecx, [ebp - 0x20]
mov dword [esi + 8], eax
push ecx
push eax
push ebx
push dword [ebp - 0x14]
call fcn.00437eef
cmp eax, 0xea
lea ecx, [ebp - 0xd4]
sete bl
mov byte [ebp - 4], 7
call fcn.00403013
test bl, bl
je 0x4224f6
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
push eax
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 9
call fcn.004042dd
lea ecx, [ebp - 0x20]
mov dword [esi + 8], eax
push ecx
push eax
push 1
push dword [ebp - 0x14]
call fcn.00437eef
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
call fcn.00403013
mov eax, 0x4a0cf0
mov esi, 0x48b6a8
mov ecx, eax
mov dword [ebp - 0x54], esi
test ecx, ecx
mov dword [ebp - 0x34], edi
jne 0x422511
mov eax, 0x4a9e50
xor ebx, ebx
lea ecx, [ebp - 0x2a]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00404d89
lea eax, [ebp - 0x54]
push ebx
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00402e4a
cmp eax, ebx
lea ecx, [ebp - 0x54]
sete byte [ebp + 0xb]
mov byte [ebp - 4], 7
call fcn.00402438
cmp byte [ebp + 0xb], bl
je 0x422663
lea eax, [ebp - 0x2b]
push ebx
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xdc], edi
call fcn.00403cd9
lea eax, [ebp - 0x2c]
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x5c], edi
call fcn.00403cd9
mov edi, 0x104
lea eax, [ebp - 0xbc]
push edi
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 0xd
call fcn.004042dd
push eax
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xc
call fcn.00403013
lea eax, [ebp - 0xc8]
push edi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402f01
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 0xe
call fcn.004042dd
mov edi, eax
lea ecx, [ebp - 0xfc]
mov dword [esi + 8], edi
call fcn.004042dd
push edi
push ebx
push 0x4a2ea8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xc
call fcn.00403013
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x7c]
call fcn.004042dd
push 1
push 2
push eax
push esi
call fcn.004226e7
add esp, 0x10
test eax, eax
jne 0x422648
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x7c]
push eax
call fcn.00422a2b
lea ecx, [ebp - 0x7c]
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
call fcn.00402438
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.00402438
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00402438
push 1
xor esi, esi
pop ebx
jmp 0x42240f
cmp dword [ebp - 0x14], esi
je 0x422689
push dword [ebp - 0x14]
call fcn.00437ea7
cmp dword [ebp - 0x1c], esi
je 0x422696
push dword [ebp - 0x1c]
call fcn.00437ea7
cmp dword [ebp - 0x18], esi
je 0x4226ad
push dword [ebp - 0x18]
call fcn.00437ea7
jmp 0x4226ad
mov eax, dword [0x4ab020]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x4226c7
push eax
call fcn.00468d0b
pop ecx
mov dword [0x4ab020], esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
leave
ret 4