Function at 0x41b8d9
Capabilities:
Check if file exists

Disassembly:
push 0x9c
mov eax, 0x1067164
call fcn.00feeeaa
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x70]
mov byte [eax], 1
call fcn.0040c07e
lea ecx, [ebp - 0x48]
call fcn.004094fd
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.0040c2e8
test al, al
je 0x41bb55
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x41bbe0
test eax, eax
jne 0x41ba34
mov ecx, edi
call fcn.00409fcf
push edi
inc eax
lea ecx, [ebp - 0x38]
push eax
call fcn.004093a4
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.00409778
push dword [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00feee65
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 + 0x34]
add eax, 0xe0
mov dword [ebp - 0x14], ecx
xor ecx, ecx
cmp byte [edi + 0xe8], 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 + 0x6c]
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 0x41b9c4
mov ebx, eax
jmp 0x41ba08
mov eax, dword [ebp - 0x20]
sub eax, ebx
je 0x41ba22
sub eax, 1
je 0x41ba16
sub eax, 1
je 0x41ba08
sub eax, 1
je 0x41b9fe
sub eax, 1
je 0x41b9f2
sub eax, 1
je 0x41b9eb
mov ebx, 0x80004005
jmp 0x41ba08
mov ebx, 0x80004004
jmp 0x41ba08
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x64], 3
jmp 0x41ba25
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 2
push dword [ebp - 0x2c]
call fcn.00feee65
pop ecx
jmp 0x41bbe0
mov esi, dword [ebp - 0x10]
mov dword [esi + 0x64], 1
jmp 0x41ba25
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00feee65
mov eax, dword [esi + 0x64]
pop ecx
cmp eax, 3
jne 0x41ba70
push edi
call fcn.00416a3d
test al, al
jne 0x41ba64
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041d2b5
mov ebx, eax
test ebx, ebx
jne 0x41bbe0
mov ebx, 0x80004005
jmp 0x41bbe0
mov byte [esi + 0x18c], 1
jmp 0x41bbdb
cmp eax, 4
jne 0x41baed
push edi
lea ecx, [ebp - 0x1c]
call fcn.00409429
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.00416a3d
test al, al
jne 0x41baa8
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.0041d2b5
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x41bad8
push dword [ebp - 0x1c]
push dword [edi]
call fcn.0040be83
test al, al
jne 0x41bae0
call fcn.0040cd5f
push edi
lea ecx, [ebp - 0x1c]
push ecx
push str.Cannot_rename_existing_file
push eax
mov ecx, esi
call fcn.0041d223
mov ebx, eax
test ebx, ebx
jne 0x41bad8
mov ebx, 0x80004005
push dword [ebp - 0x1c]
jmp 0x41ba0b
push dword [ebp - 0x1c]
call fcn.00feee65
jmp 0x41bbda
mov eax, dword [ebp - 0x50]
push dword [edi]
shr eax, 4
test al, 1
je 0x41bb0e
call fcn.0040bef3
test al, al
jne 0x41bbdb
push edi
push str.Cannot_delete_output_folder
jmp 0x41bb3f
call fcn.0040c1e7
test al, al
je 0x41bbdb
push dword [edi]
call fcn.0040bcd0
test al, al
jne 0x41bbdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41bbdb
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.0041d2ff
test eax, eax
je 0x41bbe0
mov ebx, eax
jmp 0x41bbe0
push dword [edi]
call fcn.0040d177
mov esi, eax
test esi, esi
js 0x41bbdb
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x41bbdb
push edi
lea ecx, [ebp - 0x1c]
call fcn.00409429
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x18]
jae 0x41bb89
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.0040c07e
lea ecx, [ebp - 0x80]
call fcn.004094fd
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.0040c2e8
test al, al
je 0x41bbc9
mov eax, dword [ebp - 0x88]
test al, 1
je 0x41bbc9
and eax, 0xfffffffe
push eax
push dword [ebp - 0x1c]
call fcn.0040bf9e
push dword [ebp - 0x80]
call fcn.00feee65
push dword [ebp - 0x1c]
call fcn.00feee65
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
push dword [ebp - 0x48]
call fcn.00feee65
pop ecx
mov eax, ebx
call fcn.00feee78
ret 8