Function at 0x44016f
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x44c85e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x45e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x60], esi
mov eax, dword [ebp + 0x70]
lea ecx, [ebp]
mov byte [eax], 1
call fcn.00433371
lea ecx, [ebp + 0x28]
call fcn.0043115a
mov edi, dword [ebp + 0x6c]
lea ecx, [ebp]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
push dword [edi]
call fcn.00433392
test al, al
je 0x4403fe
mov eax, dword [esi + 0x48]
cmp eax, 2
je 0x440479
test eax, eax
jne 0x4402e8
mov ecx, edi
call fcn.004306b0
push edi
inc eax
lea ecx, [ebp + 0x38]
push eax
call fcn.00430ad1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x48]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
call fcn.00430a47
mov byte [ebp - 4], 3
push dword [ebp + 0x38]
call fcn.0041aea5
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x60]
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x44]
pop ecx
mov ecx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x60]
mov edx, dword [esi + 0x50]
add eax, 0xd8
mov dword [ebp + 0x5c], ecx
xor ecx, ecx
cmp byte [edi + 0x3b], 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 + 0x74]
lea eax, [ebp]
push eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x48]
push edx
call dword [esi + 0x14]
mov edi, dword [ebp + 0x6c]
test eax, eax
je 0x440278
mov ebx, eax
jmp 0x4402bc
mov eax, dword [ebp + 0x44]
sub eax, ebx
je 0x4402d6
sub eax, 1
je 0x4402ca
sub eax, 1
je 0x4402bc
sub eax, 1
je 0x4402b2
sub eax, 1
je 0x4402a6
sub eax, 1
je 0x44029f
mov ebx, 0x80004005
jmp 0x4402bc
mov ebx, 0x80004004
jmp 0x4402bc
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 3
jmp 0x4402d9
mov eax, dword [ebp + 0x60]
mov dword [eax + 0x48], 2
push dword [ebp + 0x48]
call fcn.0041aea5
pop ecx
jmp 0x440479
mov esi, dword [ebp + 0x60]
mov dword [esi + 0x48], 1
jmp 0x4402d9
mov esi, dword [ebp + 0x60]
mov byte [ebp - 4], bl
push dword [ebp + 0x48]
call fcn.0041aea5
mov eax, dword [esi + 0x48]
pop ecx
cmp eax, 3
jne 0x440325
mov ecx, edi
call fcn.0043b88d
test al, al
jne 0x440319
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.004409b6
mov ebx, eax
test ebx, ebx
jne 0x440479
mov ebx, 0x80004005
jmp 0x440479
mov byte [esi + 0x174], 1
jmp 0x440474
cmp eax, 4
jne 0x44039d
push edi
lea ecx, [ebp + 0x54]
call fcn.004311e6
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 4
call fcn.0043b88d
test al, al
jne 0x44035c
push edi
push str.Cannot_create_file_with_auto_name
mov ecx, esi
call fcn.004409b6
test eax, eax
mov ebx, 0x80004005
cmovne ebx, eax
jmp 0x440388
mov edx, dword [ebp + 0x54]
mov ecx, dword [edi]
call fcn.00432b45
test al, al
jne 0x440390
call fcn.00433c58
push edi
lea ecx, [ebp + 0x54]
push ecx
push ecx
push eax
mov ecx, esi
call fcn.0044087c
mov ebx, eax
test ebx, ebx
jne 0x440388
mov ebx, 0x80004005
push dword [ebp + 0x54]
jmp 0x4402bf
push dword [ebp + 0x54]
call fcn.0041aea5
jmp 0x440473
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x4403be
call fcn.00432bae
test al, al
jne 0x440474
push edi
push str.Cannot_delete_output_folder
jmp 0x4403ef
call fcn.00433874
test al, al
je 0x440474
mov ecx, dword [edi]
call fcn.004328b3
test al, al
jne 0x440474
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x440474
push edi
push str.Cannot_delete_output_file
mov ecx, esi
call fcn.00440920
test eax, eax
je 0x440479
mov ebx, eax
jmp 0x440479
mov ecx, dword [edi]
call fcn.004342a8
mov esi, eax
test esi, esi
js 0x440474
cmp word [ecx + esi*2 + 2], bx
je 0x440474
push edi
lea ecx, [ebp + 0x48]
call fcn.004311e6
mov byte [ebp - 4], 5
mov edi, dword [ebp + 0x48]
cmp esi, dword [ebp + 0x4c]
jae 0x440430
xor eax, eax
mov dword [ebp + 0x4c], esi
mov word [edi + esi*2], ax
lea ecx, [ebp - 0x44]
call fcn.00433371
lea ecx, [ebp - 0x1c]
call fcn.0043115a
push ebx
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00433392
test al, al
je 0x440464
mov edx, dword [ebp - 0x24]
test dl, 1
je 0x440464
and edx, 0xfffffffe
mov ecx, edi
call fcn.00432c0c
push dword [ebp - 0x1c]
call fcn.0041aea5
push edi
call fcn.0041aea5
pop ecx
pop ecx
mov eax, dword [ebp + 0x70]
mov byte [eax], bl
push dword [ebp + 0x28]
call fcn.0041aea5
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 8