Function at 0x41ba56
Capabilities:
Check if file exists

Disassembly:
push 0x9c
mov eax, 0x44b7b4
call fcn.0043c87a
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x70]
mov byte [eax], 1
call fcn.0040c655
lea ecx, [ebp - 0x48]
call fcn.004099a8
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.0040c8bf
test al, al
je 0x41bccf
mov eax, dword [esi + 0x48]
cmp eax, 2
je 0x41bd5a
test eax, eax
jne 0x41bbae
mov ecx, edi
call fcn.0040a487
push edi
inc eax
lea ecx, [ebp - 0x38]
push eax
call fcn.0040984f
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00409c23
push dword [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0043c835
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [esi + 0x50]
add eax, 0xd8
mov dword [ebp - 0x14], ecx
xor ecx, ecx
cmp byte [edi + 0x3b], cl
mov esi, dword [edx]
cmovne ecx, eax
push ecx
xor ecx, ecx
mov eax, edi
add eax, 0xc0
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 - 0x2c]
push edx
call dword [esi + 0x14]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41bb3e
mov ebx, eax
jmp 0x41bb82
mov eax, dword [ebp - 0x20]
sub eax, ebx
je 0x41bb9c
sub eax, 1
je 0x41bb90
sub eax, 1
je 0x41bb82
sub eax, 1
je 0x41bb78
sub eax, 1
je 0x41bb6c
sub eax, 1
je 0x41bb65
mov ebx, 0x80004005
jmp 0x41bb82
mov ebx, 0x80004004
jmp 0x41bb82
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x48], 3
jmp 0x41bb9f
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 2
push dword [ebp - 0x2c]
call fcn.0043c835
pop ecx
jmp 0x41bd5a
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x48], 1
jmp 0x41bb9f
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0043c835
mov eax, dword [esi + 0x48]
pop ecx
cmp eax, 3
jne 0x41bbea
push edi
call fcn.0041700a
test al, al
jne 0x41bbde
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041d363
mov ebx, eax
test ebx, ebx
jne 0x41bd5a
mov ebx, 0x80004005
jmp 0x41bd5a
mov byte [esi + 0x174], 1
jmp 0x41bd55
cmp eax, 4
jne 0x41bc67
push edi
lea ecx, [ebp - 0x1c]
call fcn.004098d4
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.0041700a
test al, al
jne 0x41bc22
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041d363
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x41bc52
push dword [ebp - 0x1c]
push dword [edi]
call fcn.0040c488
test al, al
jne 0x41bc5a
call fcn.0040d336
push edi
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_rename_existing_file
push eax
mov ecx, esi
call fcn.0041d2d1
mov ebx, eax
test ebx, ebx
jne 0x41bc52
mov ebx, 0x80004005
push dword [ebp - 0x1c]
jmp 0x41bb85
push dword [ebp - 0x1c]
call fcn.0043c835
jmp 0x41bd54
mov eax, dword [ebp - 0x50]
push dword [edi]
shr eax, 4
test al, 1
je 0x41bc88
call fcn.0040c4f8
test al, al
jne 0x41bd55
push edi
push str.Cannot_delete_output_folder
jmp 0x41bcb9
call fcn.0040c7be
test al, al
je 0x41bd55
push dword [edi]
call fcn.0040c235
test al, al
jne 0x41bd55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41bd55
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.0041d3ad
test eax, eax
je 0x41bd5a
mov ebx, eax
jmp 0x41bd5a
push dword [edi]
call fcn.0040d74e
mov esi, eax
test esi, esi
js 0x41bd55
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x41bd55
push edi
lea ecx, [ebp - 0x1c]
call fcn.004098d4
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x18]
jae 0x41bd03
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xa8]
call fcn.0040c655
lea ecx, [ebp - 0x80]
call fcn.004099a8
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.0040c8bf
test al, al
je 0x41bd43
mov eax, dword [ebp - 0x88]
test al, 1
je 0x41bd43
and eax, 0xfffffffe
push eax
push dword [ebp - 0x1c]
call fcn.0040c5a3
push dword [ebp - 0x80]
call fcn.0043c835
push dword [ebp - 0x1c]
call fcn.0043c835
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
push dword [ebp - 0x48]
call fcn.0043c835
pop ecx
mov eax, ebx
call fcn.0043c848
ret 8