Function at 0x4232cc
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x60
push 0x38
mov eax, 0x44ebe8
call fcn.0043d4af
mov esi, ecx
mov dword [ebp + 0x60], esi
mov eax, dword [ebp + 0x70]
lea ecx, [ebp]
mov byte [eax], 1
call fcn.004109a2
lea ecx, [ebp + 0x28]
call fcn.0040c03a
mov edi, dword [ebp + 0x6c]
lea ecx, [ebp]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.00410a6b
test al, al
je 0x423543
cmp dword [esi + 0x48], 2
je 0x4235c5
cmp dword [esi + 0x48], ebx
jne 0x423420
mov ecx, edi
call fcn.0040c564
inc eax
mov ecx, edi
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.0041bc61
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0040bfb7
push dword [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.0043d465
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x60]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x50]
pop ecx
push eax
mov eax, dword [ebp + 0x60]
xor ecx, ecx
mov esi, dword [esi + 0x50]
add eax, 0xd8
cmp byte [edi + 0x3b], cl
cmovne ecx, eax
mov eax, edi
mov edx, dword [esi]
add eax, 0xc0
push ecx
xor ecx, ecx
cmp byte [edi + 0xcb], cl
cmovne ecx, eax
mov eax, edi
push ecx
push dword [eax + 0x74]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x44]
push esi
call dword [edx + 0x14]
mov edi, dword [ebp + 0x6c]
test eax, eax
je 0x4233b3
mov ebx, eax
jmp 0x4233f7
mov eax, dword [ebp + 0x50]
sub eax, ebx
je 0x423411
sub eax, 1
je 0x423405
sub eax, 1
je 0x4233f7
sub eax, 1
je 0x4233ed
sub eax, 1
je 0x4233e1
sub eax, 1
je 0x4233da
mov ebx, 0x80004005
jmp 0x4233f7
mov ebx, 0x80004004
jmp 0x4233f7
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 3
jmp 0x423414
mov eax, dword [ebp + 0x60]
mov dword [eax + 0x48], 2
push dword [ebp + 0x44]
call fcn.0043d465
pop ecx
jmp 0x4235c5
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 1
jmp 0x423414
mov esi, dword [ebp + 0x60]
push dword [ebp + 0x44]
mov byte [ebp - 4], bl
call fcn.0043d465
pop ecx
cmp dword [esi + 0x48], 3
jne 0x42345d
push edi
call fcn.0041c65c
test al, al
jne 0x423451
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00422c35
mov ebx, eax
test ebx, ebx
jne 0x4235c5
mov ebx, 0x80004005
jmp 0x4235c5
mov byte [esi + 0x174], 1
jmp 0x4235c0
cmp dword [esi + 0x48], 4
jne 0x4234db
push edi
lea ecx, [ebp + 0x54]
call fcn.0040c14c
lea eax, [ebp + 0x54]
mov byte [ebp - 4], 4
push eax
call fcn.0041c65c
test al, al
jne 0x423496
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00422c35
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x4234c6
push dword [ebp + 0x54]
push dword [edi]
call fcn.0040fc08
test al, al
jne 0x4234ce
call fcn.004115d6
push edi
lea ecx, [ebp + 0x54]
push ecx
push str.Cannot_rename_existing_file
push eax
mov ecx, esi
call fcn.00422d0c
mov ebx, eax
test ebx, ebx
jne 0x4234c6
mov ebx, 0x80004005
push dword [ebp + 0x54]
jmp 0x4233fa
push dword [ebp + 0x54]
call fcn.0043d465
jmp 0x4235bf
mov eax, dword [ebp + 0x20]
push dword [edi]
shr eax, 4
test al, 1
je 0x4234fc
call fcn.0040fcbc
test al, al
jne 0x4235c0
push edi
push str.Cannot_delete_output_folder
jmp 0x42352d
call fcn.0041081f
test al, al
je 0x4235c0
push dword [edi]
call fcn.0040fe9a
test al, al
jne 0x4235c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4235c0
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.00422c7f
test eax, eax
je 0x4235c5
mov ebx, eax
jmp 0x4235c5
push dword [edi]
call fcn.00412028
mov esi, eax
test esi, esi
js 0x4235c0
mov ecx, dword [edi]
cmp word [ecx + esi*2 + 2], bx
je 0x4235c0
push edi
lea ecx, [ebp + 0x54]
call fcn.0040c14c
mov byte [ebp - 4], 5
cmp esi, dword [ebp + 0x58]
jae 0x423577
mov eax, dword [ebp + 0x54]
xor ecx, ecx
mov dword [ebp + 0x58], esi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x44]
call fcn.004109a2
lea ecx, [ebp - 0x1c]
call fcn.0040c03a
push ebx
push dword [ebp + 0x54]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00410a6b
test al, al
je 0x4235ae
mov eax, dword [ebp - 0x24]
test al, 1
je 0x4235ae
and eax, 0xfffffffe
push eax
push dword [ebp + 0x54]
call fcn.0040fb92
push dword [ebp - 0x1c]
call fcn.0043d465
push dword [ebp + 0x54]
call fcn.0043d465
pop ecx
pop ecx
mov eax, dword [ebp + 0x70]
mov byte [eax], bl
push dword [ebp + 0x28]
call fcn.0043d465
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x64]
pop ebp
ret 8