Function at 0x41aeea
Capabilities:
Check if file exists

Disassembly:
push 0x9c
mov eax, 0x448c7a
call fcn.00446bc9
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x70]
mov byte [eax], 1
call fcn.0040b712
lea ecx, [ebp - 0x48]
call fcn.004093d0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.0040bad8
test al, al
je 0x41b15c
cmp dword [esi + 0x48], 2
je 0x41b1e2
cmp dword [esi + 0x48], ebx
jne 0x41b03d
mov ecx, edi
call fcn.004097d2
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004147b5
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.004093a6
mov byte [ebp - 4], 3
push dword [ebp - 0x38]
call fcn.0043940f
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
pop ecx
push eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov esi, dword [esi + 0x50]
add eax, 0xd8
cmp byte [edi + 0x3b], cl
cmovne ecx, eax
mov eax, edi
mov edx, dword [esi]
add eax, 0xc0
push ecx
xor ecx, ecx
cmp byte [edi + 0xcb], cl
cmovne ecx, eax
mov eax, edi
push ecx
push dword [eax + 0x74]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push esi
call dword [edx + 0x14]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41afd0
mov ebx, eax
jmp 0x41b014
mov eax, dword [ebp - 0x2c]
sub eax, ebx
je 0x41b02e
sub eax, 1
je 0x41b022
sub eax, 1
je 0x41b014
sub eax, 1
je 0x41b00a
sub eax, 1
je 0x41affe
sub eax, 1
je 0x41aff7
mov ebx, 0x80004005
jmp 0x41b014
mov ebx, 0x80004004
jmp 0x41b014
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x48], 3
jmp 0x41b031
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 2
push dword [ebp - 0x28]
call fcn.0043940f
pop ecx
jmp 0x41b1e2
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x48], 1
jmp 0x41b031
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], bl
push dword [ebp - 0x28]
call fcn.0043940f
pop ecx
cmp dword [esi + 0x48], 3
jne 0x41b07b
mov ecx, edi
call fcn.00415a74
test al, al
jne 0x41b06f
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041a986
mov ebx, eax
test ebx, ebx
jne 0x41b1e2
mov ebx, 0x80004005
jmp 0x41b1e2
mov byte [esi + 0x174], 1
jmp 0x41b1dd
cmp dword [esi + 0x48], 4
jne 0x41b0f4
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040947d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00415a74
test al, al
jne 0x41b0b3
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041a986
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x41b0df
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi]
call fcn.0040b1cb
test al, al
jne 0x41b0e7
call fcn.0040c2b1
push edi
lea ecx, [ebp - 0x1c]
push ecx
push ecx
push eax
mov ecx, esi
call fcn.0041aa72
mov ebx, eax
test ebx, ebx
jne 0x41b0df
mov ebx, 0x80004005
push dword [ebp - 0x1c]
jmp 0x41b017
push dword [ebp - 0x1c]
call fcn.0043940f
jmp 0x41b1dc
mov eax, dword [ebp - 0x50]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x41b115
call fcn.0040b184
test al, al
jne 0x41b1dd
push edi
push str.Cannot_delete_output_folder
jmp 0x41b146
call fcn.0040bf61
test al, al
je 0x41b1dd
mov ecx, dword [edi]
call fcn.0040b467
test al, al
jne 0x41b1dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41b1dd
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.0041a9dc
test eax, eax
je 0x41b1e2
mov ebx, eax
jmp 0x41b1e2
mov ecx, dword [edi]
call fcn.0040c84a
mov esi, eax
test esi, esi
js 0x41b1dd
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x41b1dd
push edi
lea ecx, [ebp - 0x28]
call fcn.0040947d
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x24]
jae 0x41b190
xor eax, eax
mov dword [ebp - 0x24], esi
mov word [edi + esi*2], ax
lea ecx, [ebp - 0xa8]
call fcn.0040b712
lea ecx, [ebp - 0x80]
call fcn.004093d0
push ebx
push edi
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.0040bad8
test al, al
je 0x41b1cd
mov edx, dword [ebp - 0x88]
test dl, 1
je 0x41b1cd
and edx, 0xfffffffe
mov ecx, edi
call fcn.0040b139
push dword [ebp - 0x80]
call fcn.0043940f
push edi
call fcn.0043940f
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
push dword [ebp - 0x48]
call fcn.0043940f
pop ecx
mov eax, ebx
call fcn.00446b92
ret 8