Function at 0x43f929
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x60
push 0x38
mov eax, 0x44bdd5
call fcn.00425438
mov esi, ecx
mov dword [ebp + 0x60], esi
mov eax, dword [ebp + 0x70]
lea ecx, [ebp]
mov byte [eax], 1
call fcn.00432fa6
lea ecx, [ebp + 0x28]
call fcn.00430d8f
mov edi, dword [ebp + 0x6c]
lea ecx, [ebp]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.00432fc7
test al, al
je 0x43fb99
cmp dword [esi + 0x48], 2
je 0x43fc16
cmp dword [esi + 0x48], ebx
jne 0x43fa7d
mov ecx, edi
call fcn.00430340
inc eax
mov ecx, edi
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.00403442
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp + 0x48]
call fcn.004306ae
mov byte [ebp - 4], 3
push dword [ebp + 0x38]
call fcn.00419af9
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 + 0x44]
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 + 0x48]
push esi
call dword [edx + 0x14]
mov edi, dword [ebp + 0x6c]
test eax, eax
je 0x43fa10
mov ebx, eax
jmp 0x43fa54
mov eax, dword [ebp + 0x44]
sub eax, ebx
je 0x43fa6e
sub eax, 1
je 0x43fa62
sub eax, 1
je 0x43fa54
sub eax, 1
je 0x43fa4a
sub eax, 1
je 0x43fa3e
sub eax, 1
je 0x43fa37
mov ebx, 0x80004005
jmp 0x43fa54
mov ebx, 0x80004004
jmp 0x43fa54
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 3
jmp 0x43fa71
mov eax, dword [ebp + 0x60]
mov dword [eax + 0x48], 2
push dword [ebp + 0x48]
call fcn.00419af9
pop ecx
jmp 0x43fc16
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 1
jmp 0x43fa71
mov esi, dword [ebp + 0x60]
mov byte [ebp - 4], bl
push dword [ebp + 0x48]
call fcn.00419af9
pop ecx
cmp dword [esi + 0x48], 3
jne 0x43fabb
mov ecx, edi
call fcn.0043b0af
test al, al
jne 0x43faaf
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00440159
mov ebx, eax
test ebx, ebx
jne 0x43fc16
mov ebx, 0x80004005
jmp 0x43fc16
mov byte [esi + 0x174], 1
jmp 0x43fc11
cmp dword [esi + 0x48], 4
jne 0x43fb34
push edi
lea ecx, [ebp + 0x54]
call fcn.00430e1a
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 4
call fcn.0043b0af
test al, al
jne 0x43faf3
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.00440159
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x43fb1f
mov edx, dword [ebp + 0x54]
mov ecx, dword [edi]
call fcn.0043278c
test al, al
jne 0x43fb27
call fcn.0043389c
push edi
lea ecx, [ebp + 0x54]
push ecx
push ecx
push eax
mov ecx, esi
call fcn.00440022
mov ebx, eax
test ebx, ebx
jne 0x43fb1f
mov ebx, 0x80004005
push dword [ebp + 0x54]
jmp 0x43fa57
push dword [ebp + 0x54]
call fcn.00419af9
jmp 0x43fc10
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x43fb55
call fcn.004327f5
test al, al
jne 0x43fc11
push edi
push str.Cannot_delete_output_folder
jmp 0x43fb86
call fcn.00433499
test al, al
je 0x43fc11
mov ecx, dword [edi]
call fcn.004324f6
test al, al
jne 0x43fc11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43fc11
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.004400c3
test eax, eax
je 0x43fc16
mov ebx, eax
jmp 0x43fc16
mov ecx, dword [edi]
call fcn.00433ef7
mov esi, eax
test esi, esi
js 0x43fc11
mov eax, dword [edi]
cmp word [eax + esi*2 + 2], bx
je 0x43fc11
push edi
lea ecx, [ebp + 0x48]
call fcn.00430e1a
mov byte [ebp - 4], 5
mov edi, dword [ebp + 0x48]
cmp esi, dword [ebp + 0x4c]
jae 0x43fbcd
xor eax, eax
mov dword [ebp + 0x4c], esi
mov word [edi + esi*2], ax
lea ecx, [ebp - 0x44]
call fcn.00432fa6
lea ecx, [ebp - 0x1c]
call fcn.00430d8f
push ebx
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00432fc7
test al, al
je 0x43fc01
mov edx, dword [ebp - 0x24]
test dl, 1
je 0x43fc01
and edx, 0xfffffffe
mov ecx, edi
call fcn.00432855
push dword [ebp - 0x1c]
call fcn.00419af9
push edi
call fcn.00419af9
pop ecx
pop ecx
mov eax, dword [ebp + 0x70]
mov byte [eax], bl
push dword [ebp + 0x28]
call fcn.00419af9
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