Function at 0x41b694
Capabilities:
Check if file exists

Disassembly:
push 0x9c
mov eax, 0xac84e8
call fcn.00ac66fb
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
mov byte [eax], 1
call fcn.0040b4fc
lea ecx, [ebp - 0x3c]
call fcn.004092bf
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x64]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [esi]
call fcn.0040b834
test al, al
je 0x41b90e
mov eax, dword [edi + 0x48]
cmp eax, 2
je 0x41b992
test eax, eax
jne 0x41b7f1
mov ecx, esi
call fcn.0040966d
inc eax
mov ecx, esi
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004145e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [eax + 4]
push dword [eax]
call fcn.00409252
mov byte [ebp - 4], bl
push dword [ebp - 0x70]
call fcn.00aa17b1
mov edi, dword [edi + 0x50]
xor edx, edx
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi]
cmp byte [ecx + 0x3b], dl
mov esi, dword [eax + 0x14]
lea eax, [ecx + 0xd8]
cmovne edx, eax
lea eax, [ecx + 0xc0]
xor ecx, ecx
cmp byte [ebx + 0xcb], cl
cmovne ecx, eax
lea eax, [ebp - 0x2c]
push eax
push edx
push ecx
mov eax, ebx
push dword [eax + 0x74]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push edi
call esi
push 0
pop ebx
test eax, eax
je 0x41b781
mov ebx, eax
jmp 0x41b7c5
mov eax, dword [ebp - 0x2c]
sub eax, ebx
je 0x41b7df
sub eax, 1
je 0x41b7d3
sub eax, 1
je 0x41b7c5
sub eax, 1
je 0x41b7bb
sub eax, 1
je 0x41b7af
sub eax, 1
je 0x41b7a8
mov ebx, 0x80004005
jmp 0x41b7c5
mov ebx, 0x80004004
jmp 0x41b7c5
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x48], 3
jmp 0x41b7e2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 2
push dword [ebp - 0x28]
call fcn.00aa17b1
pop ecx
jmp 0x41b992
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x48], 1
jmp 0x41b7e2
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.00aa17b1
mov eax, dword [edi + 0x48]
mov esi, dword [ebp + 8]
pop ecx
cmp eax, 3
jne 0x41b82e
mov ecx, esi
call fcn.004159d1
test al, al
jne 0x41b822
push esi
push str.Cannot_create_file_with_auto_name
mov ecx, edi
call fcn.0041b132
mov ebx, eax
test ebx, ebx
jne 0x41b992
mov ebx, 0x80004005
jmp 0x41b992
mov byte [edi + 0x174], 1
jmp 0x41b98d
cmp eax, 4
jne 0x41b8a6
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040936a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004159d1
test al, al
jne 0x41b865
push esi
push str.Cannot_create_file_with_auto_name
mov ecx, edi
call fcn.0041b132
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x41b891
mov edx, dword [ebp - 0x1c]
mov ecx, dword [esi]
call fcn.0040afba
test al, al
jne 0x41b899
call fcn.0040c080
push esi
lea ecx, [ebp - 0x1c]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.0041b21e
mov ebx, eax
test ebx, ebx
jne 0x41b891
mov ebx, 0x80004005
push dword [ebp - 0x1c]
jmp 0x41b7c8
push dword [ebp - 0x1c]
call fcn.00aa17b1
jmp 0x41b98c
mov eax, dword [ebp - 0x44]
mov ecx, dword [esi]
shr eax, 4
test al, 1
je 0x41b8c7
call fcn.0040af75
test al, al
jne 0x41b98d
push esi
push str.Cannot_delete_output_folder
jmp 0x41b8f8
call fcn.0040bcb2
test al, al
je 0x41b98d
mov ecx, dword [esi]
call fcn.0040b253
test al, al
jne 0x41b98d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41b98d
push esi
push str.Cannot_delete_output_file
mov ecx, edi
call fcn.0041b188
test eax, eax
je 0x41b992
mov ebx, eax
jmp 0x41b992
mov ecx, dword [esi]
call fcn.0040c6b9
mov edi, eax
test edi, edi
js 0x41b98d
cmp word [ecx + edi*2 + 2], bx
je 0x41b98d
push esi
lea ecx, [ebp - 0x28]
call fcn.0040936a
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x24]
jae 0x41b940
xor eax, eax
mov dword [ebp - 0x24], edi
mov word [esi + edi*2], ax
lea ecx, [ebp - 0xa8]
call fcn.0040b4fc
lea ecx, [ebp - 0x80]
call fcn.004092bf
push ebx
push esi
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0040b834
test al, al
je 0x41b97d
mov edx, dword [ebp - 0x88]
test dl, 1
je 0x41b97d
and edx, 0xfffffffe
mov ecx, esi
call fcn.0040af2c
push dword [ebp - 0x80]
call fcn.00aa17b1
push esi
call fcn.00aa17b1
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
push dword [ebp - 0x3c]
call fcn.00aa17b1
pop ecx
mov eax, ebx
call fcn.00ac66c9
ret 8