Function at 0x422093
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x47afc1
call fcn.0042fff2
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
mov byte [eax], 1
call fcn.0040f15d
lea ecx, [ebp - 0x3c]
call fcn.0040a48f
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x64]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.0040f43f
test al, al
je 0x4222ff
cmp dword [esi + 0x5c], 2
je 0x422387
cmp dword [esi + 0x5c], ebx
jne 0x4221dd
mov ecx, edi
call fcn.0040b76e
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041a817
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a94b
push dword [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0042ffa8
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
pop ecx
push eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov esi, dword [esi + 0x2c]
add eax, 0xc8
cmp byte [edi + 0xd0], cl
cmovne ecx, eax
mov eax, edi
mov edx, dword [esi]
add eax, 0xb0
push ecx
xor ecx, ecx
cmp byte [edi + 0xbe], cl
cmovne ecx, eax
mov eax, edi
push ecx
push dword [eax + 0x64]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x1c]
push esi
call dword [edx + 0x14]
mov edi, dword [ebp + 8]
test eax, eax
je 0x422170
mov ebx, eax
jmp 0x4221b4
mov eax, dword [ebp - 0x20]
sub eax, ebx
je 0x4221ce
sub eax, 1
je 0x4221c2
sub eax, 1
je 0x4221b4
sub eax, 1
je 0x4221aa
sub eax, 1
je 0x42219e
sub eax, 1
je 0x422197
mov ebx, 0x80004005
jmp 0x4221b4
mov ebx, 0x80004004
jmp 0x4221b4
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x5c], 3
jmp 0x4221d1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x5c], 2
push dword [ebp - 0x1c]
call fcn.0042ffa8
pop ecx
jmp 0x422387
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x5c], 1
jmp 0x4221d1
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0042ffa8
pop ecx
cmp dword [esi + 0x5c], 3
jne 0x42221a
push edi
call fcn.0041b731
test al, al
jne 0x42220e
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00423788
mov ebx, eax
test ebx, ebx
jne 0x422387
mov ebx, 0x80004005
jmp 0x422387
mov byte [esi + 0x160], 1
jmp 0x422382
cmp dword [esi + 0x5c], 4
jne 0x422297
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040a3b9
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.0041b731
test al, al
jne 0x422256
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00423788
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x4221b4
push dword [ebp - 0x1c]
push dword [edi]
call fcn.0040ecd3
test al, al
jne 0x42228a
call fcn.0040ff8b
push edi
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_rename_existing_file
push eax
mov ecx, esi
call fcn.004236f9
mov ebx, eax
test ebx, ebx
jne 0x4221b4
jmp 0x422190
push dword [ebp - 0x1c]
call fcn.0042ffa8
jmp 0x422381
mov eax, dword [ebp - 0x44]
push dword [edi]
shr eax, 4
test al, 1
je 0x4222b8
call fcn.0040ed86
test al, al
jne 0x422382
push edi
push str.Cannot_delete_output_folder
jmp 0x4222e9
call fcn.0040f33c
test al, al
je 0x422382
push dword [edi]
call fcn.0040e8ba
test al, al
jne 0x422382
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x422382
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.004237d2
test eax, eax
je 0x422387
mov ebx, eax
jmp 0x422387
push dword [edi]
call fcn.004103e1
mov esi, eax
test esi, esi
js 0x422382
mov ecx, dword [edi]
cmp word [ecx + esi*2 + 2], bx
je 0x422382
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040a3b9
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x18]
jae 0x422333
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x9c]
call fcn.0040f15d
lea ecx, [ebp - 0x74]
call fcn.0040a48f
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call fcn.0040f43f
test al, al
je 0x422370
mov eax, dword [ebp - 0x7c]
test al, 1
je 0x422370
and eax, 0xfffffffe
push eax
push dword [ebp - 0x1c]
call fcn.0040f047
push dword [ebp - 0x74]
call fcn.0042ffa8
push dword [ebp - 0x1c]
call fcn.0042ffa8
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
push dword [ebp - 0x3c]
call fcn.0042ffa8
pop ecx
mov eax, ebx
call fcn.0042ffbb
ret 8