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

Disassembly:
mov eax, 0x483cb2
call fcn.0046694c
sub esp, 0xf4
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
call fcn.0041e021
test eax, eax
je 0x422637
xor esi, esi
cmp dword [0x4a9db0], esi
jne 0x422219
push 0x41b4df
call fcn.0046867b
pop ecx
mov dword [0x4a9db0], 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.00437841
mov edi, eax
cmp edi, esi
je 0x42229b
lea eax, [ebp + 0xb]
push ebx
push eax
push 0x4a065c
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 2
cmp eax, esi
jne 0x42225d
mov eax, 0x48a67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push 0x4a1eac
push eax
mov dword [ebp - 0x24], 0xc26
call fcn.0040a559
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x18], esi
je 0x422637
push dword [ebp - 0x18]
call fcn.0043780b
jmp 0x422637
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
push 0x4a1e94
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call fcn.00437889
mov edi, eax
cmp edi, esi
je 0x422329
lea eax, [ebp + 0xb]
push ebx
push eax
push 0x4a065c
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 5
cmp eax, esi
jne 0x4222de
mov eax, 0x48a67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push 0x4a1e44
push eax
mov dword [ebp - 0x24], 0xc30
call fcn.0040a559
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401093
cmp dword [ebp - 0x14], esi
je 0x422313
push dword [ebp - 0x14]
call fcn.0043780b
cmp dword [ebp - 0x1c], esi
je 0x422285
push dword [ebp - 0x1c]
call fcn.0043780b
jmp 0x422285
push esi
push dword [ebp - 0x1c]
call fcn.00437877
mov edi, eax
cmp edi, esi
je 0x42237f
lea eax, [ebp + 0xb]
push ebx
push eax
push 0x4a065c
lea ecx, [ebp - 0x54]
call fcn.00401884
mov eax, dword [eax + 8]
mov byte [ebp - 4], 6
cmp eax, esi
jne 0x42235a
mov eax, 0x48a67c
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
push 0x4a1ddc
push eax
mov dword [ebp - 0x24], 0xc37
call fcn.0040a559
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
jmp 0x422301
cmp dword [ebp - 0x14], esi
je 0x42238c
push dword [ebp - 0x14]
call fcn.0043780b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x1c]
call fcn.00437865
cmp eax, esi
jne 0x4225ec
lea eax, [ebp - 0x29]
mov edi, 0x48a6a0
push esi
push eax
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x48a6a8
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.00437853
cmp eax, 0xea
lea ecx, [ebp - 0xd4]
sete bl
mov byte [ebp - 4], 7
call fcn.00403013
test bl, bl
je 0x422466
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.00437853
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
call fcn.00403013
mov eax, 0x49fcf0
mov esi, 0x48a6a8
mov ecx, eax
mov dword [ebp - 0x54], esi
test ecx, ecx
mov dword [ebp - 0x34], edi
jne 0x422481
mov eax, 0x4a8be0
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 0x4225d3
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 0x4a1dd8
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.00422657
add esp, 0x10
test eax, eax
jne 0x4225b8
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x7c]
push eax
call fcn.0042299b
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 0x42237f
cmp dword [ebp - 0x14], esi
je 0x4225f9
push dword [ebp - 0x14]
call fcn.0043780b
cmp dword [ebp - 0x1c], esi
je 0x422606
push dword [ebp - 0x1c]
call fcn.0043780b
cmp dword [ebp - 0x18], esi
je 0x42261d
push dword [ebp - 0x18]
call fcn.0043780b
jmp 0x42261d
mov eax, dword [0x4a9db0]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x422637
push eax
call fcn.0046867b
pop ecx
mov dword [0x4a9db0], esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
leave
ret 4