Function at 0x41b614
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x4ef486
call fcn.004d8b5a
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
mov byte [eax], 1
call fcn.0040c086
lea ecx, [ebp - 0x3c]
call fcn.004094de
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x64]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.0040c2f0
test al, al
je 0x41b883
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x41b90b
test eax, eax
jne 0x41b763
mov ecx, edi
call fcn.00409f66
push edi
inc eax
lea ecx, [ebp - 0x2c]
push eax
call fcn.00409385
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409759
push dword [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004d8b15
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
pop ecx
push eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [esi + 0x34]
add eax, 0xd0
cmp byte [edi + 0xd8], cl
cmovne ecx, eax
mov eax, edi
mov esi, dword [edx]
add eax, 0xb8
push ecx
xor ecx, ecx
cmp byte [edi + 0xc6], cl
cmovne ecx, eax
mov eax, edi
push ecx
push dword [eax + 0x6c]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x1c]
push edx
call dword [esi + 0x14]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41b6f3
mov ebx, eax
jmp 0x41b737
mov eax, dword [ebp - 0x20]
sub eax, ebx
je 0x41b751
sub eax, 1
je 0x41b745
sub eax, 1
je 0x41b737
sub eax, 1
je 0x41b72d
sub eax, 1
je 0x41b721
sub eax, 1
je 0x41b71a
mov ebx, 0x80004005
jmp 0x41b737
mov ebx, 0x80004004
jmp 0x41b737
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x64], 3
jmp 0x41b754
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 2
push dword [ebp - 0x1c]
call fcn.004d8b15
pop ecx
jmp 0x41b90b
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x64], 1
jmp 0x41b754
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004d8b15
mov eax, dword [esi + 0x64]
pop ecx
cmp eax, 3
jne 0x41b79f
push edi
call fcn.00416869
test al, al
jne 0x41b793
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041cfe2
mov ebx, eax
test ebx, ebx
jne 0x41b90b
mov ebx, 0x80004005
jmp 0x41b90b
mov byte [esi + 0x174], 1
jmp 0x41b906
cmp eax, 4
jne 0x41b81b
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040940a
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.00416869
test al, al
jne 0x41b7da
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041cfe2
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x41b737
push dword [ebp - 0x1c]
push dword [edi]
call fcn.0040be8b
test al, al
jne 0x41b80e
call fcn.0040cd4f
push edi
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_rename_existing_file
push eax
mov ecx, esi
call fcn.0041cf50
mov ebx, eax
test ebx, ebx
jne 0x41b737
jmp 0x41b713
push dword [ebp - 0x1c]
call fcn.004d8b15
jmp 0x41b905
mov eax, dword [ebp - 0x44]
push dword [edi]
shr eax, 4
test al, 1
je 0x41b83c
call fcn.0040befb
test al, al
jne 0x41b906
push edi
push str.Cannot_delete_output_folder
jmp 0x41b86d
call fcn.0040c1ef
test al, al
je 0x41b906
push dword [edi]
call fcn.0040bcd8
test al, al
jne 0x41b906
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41b906
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.0041d02c
test eax, eax
je 0x41b90b
mov ebx, eax
jmp 0x41b90b
push dword [edi]
call fcn.0040d167
mov esi, eax
test esi, esi
js 0x41b906
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x41b906
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040940a
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x18]
jae 0x41b8b7
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.0040c086
lea ecx, [ebp - 0x74]
call fcn.004094de
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call fcn.0040c2f0
test al, al
je 0x41b8f4
mov eax, dword [ebp - 0x7c]
test al, 1
je 0x41b8f4
and eax, 0xfffffffe
push eax
push dword [ebp - 0x1c]
call fcn.0040bfa6
push dword [ebp - 0x74]
call fcn.004d8b15
push dword [ebp - 0x1c]
call fcn.004d8b15
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
push dword [ebp - 0x3c]
call fcn.004d8b15
pop ecx
mov eax, ebx
call fcn.004d8b28
ret 8