Function at 0xb31ddd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11a4ba3
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x11ef064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x68]
mov byte [eax], 1
call fcn.00b1d610
lea ecx, [ebp - 0x40]
call fcn.00b1a120
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push 0
mov dword [ebp - 4], 0
push dword [edi]
call fcn.00b1da00
test al, al
je 0xb31f52
mov eax, dword [ebx + 0x48]
cmp eax, 2
je 0xb31fde
test eax, eax
jne 0xb31dfc
mov ecx, edi
call fcn.00b1ae40
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00b2ad70
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00b1a320
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.01112d76
mov eax, dword [ebp - 0x50]
add esp, 4
mov edx, dword [ebx + 0x50]
xor esi, esi
cmp byte [ebx + 0x3b], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
mov ecx, dword [edx]
lea eax, [ebx + 0xd8]
cmove eax, esi
cmp byte [ebx + 0xcb], 0
push eax
lea eax, [ebx + 0xc0]
cmove eax, esi
push eax
push dword [ebx + 0x74]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push edx
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
jne 0xb31e34
mov eax, dword [ebp + 8]
cmp eax, 5
ja case.default.0xb31da8
jmp dword [eax*4 + 0xb32004]
push dword [ebp - 0x24]
mov esi, 0x80004004
call fcn.01112d76
add esp, 4
jmp 0xb31fe0
mov dword [ebx + 0x48], 2
push dword [ebp - 0x24]
xor esi, esi
call fcn.01112d76
add esp, 4
jmp 0xb31fe0
mov dword [ebx + 0x48], 1
jmp case.0xb31da8.0
mov dword [ebx + 0x48], 3
push dword [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.01112d76
add esp, 4
mov eax, dword [ebx + 0x48]
cmp eax, 3
jne 0xb31e50
push edi
call fcn.00b2bb20
test al, al
jne 0xb31e44
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, ebx
call fcn.00b33d10
mov esi, eax
test esi, esi
jne 0xb31fe0
mov esi, 0x80004005
jmp 0xb31fe0
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.01112d76
add esp, 4
jmp 0xb31fe0
mov byte [ebx + 0x174], 1
jmp 0xb31fd8
cmp eax, 4
jne 0xb31eea
push edi
lea ecx, [ebp - 0x18]
call fcn.00b19fa0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.00b2bb20
test al, al
jne 0xb31e9a
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, ebx
call fcn.00b33d10
push dword [ebp - 0x18]
test eax, eax
mov esi, 0x80004005
cmovne esi, eax
call fcn.01112d76
add esp, 4
jmp 0xb31fe0
push dword [ebp - 0x18]
push dword [edi]
call fcn.00b1d460
test al, al
jne 0xb31eda
call fcn.00b1e560
push edi
lea ecx, [ebp - 0x18]
push ecx
push str.Cannot_rename_existing_file
push eax
mov ecx, ebx
call fcn.00b33c30
mov esi, eax
test esi, esi
jne 0xb31eca
mov esi, 0x80004005
push dword [ebp - 0x18]
call fcn.01112d76
add esp, 4
jmp 0xb31fe0
push dword [ebp - 0x18]
call fcn.01112d76
add esp, 4
jmp 0xb31fd8
mov eax, dword [ebp - 0x48]
push dword [edi]
shr eax, 4
test al, 1
je 0xb31f1f
call fcn.00b1d480
test al, al
jne 0xb31fd8
push edi
push str.Cannot_delete_output_folder
mov ecx, ebx
call fcn.00b33d90
mov esi, eax
test esi, esi
jne 0xb31fe0
jmp 0xb31fde
call fcn.00b1d7b0
test al, al
je 0xb31fd8
push dword [edi]
call fcn.00b1d1c0
test al, al
jne 0xb31fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0xb31fd8
push edi
push str.Cannot_delete_output_file
jmp 0xb31f09
push dword [edi]
call fcn.00b1eb70
mov esi, eax
test esi, esi
js 0xb31fd8
mov ecx, dword [edi]
cmp word [ecx + esi*2 + 2], 0
je 0xb31fd8
push edi
lea ecx, [ebp - 0x18]
call fcn.00b19fa0
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x14]
jae 0xb31f87
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xa0]
call fcn.00b1d610
lea ecx, [ebp - 0x78]
call fcn.00b1a120
push 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00b1da00
test al, al
je 0xb31fc5
mov eax, dword [ebp - 0x80]
test al, 1
je 0xb31fc5
and eax, 0xfffffffe
push eax
push dword [ebp - 0x18]
call fcn.00b1d4f0
push dword [ebp - 0x78]
call fcn.01112d76
push dword [ebp - 0x18]
call fcn.01112d76
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
xor esi, esi
push dword [ebp - 0x40]
call fcn.01112d76
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8