Function at 0x1006a9a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc68
mov eax, dword [0x100900c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc5c]
push eax
mov dword [ebp - 0xc60], edi
call fcn.0100643c
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x66
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01007977
mov esi, eax
test esi, esi
je 0x1006aff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1006b0e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006e6f
test bl, 0x10
je 0x1006e6f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x1006b48
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc5c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov ebx, 0xf0
push ebx
push 0x75
push edi
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
neg eax
sbb eax, eax
neg eax
push 0x100
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x20c]
push eax
push 0x69
push dword [ebp - 0xc60]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp dword [ebp - 0x630], 0
je 0x1006d09
lea eax, [ebp - 0x20c]
push eax
call fcn.01007977
test eax, eax
mov dword [ebp - 0xc64], eax
je 0x1006bcb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0xc64]
mov dword [ebp - 0xc68], eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1006bde
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc68], eax
cmp dword [ebp - 0xc68], 0xffffffff
jne 0x1006cae
lea eax, [ebp - 0x20c]
push eax
call fcn.01007977
test eax, eax
mov dword [ebp - 0xc64], eax
jne 0x1006c07
lea eax, [ebp - 0x20c]
push 0
push 0
lea ecx, [ebp - 0x40c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wsplitpath]
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.msvcrt.dll__wmakepath]
add esp, 0x28
cmp dword [ebp - 0xc64], 0
je 0x1006c52
push dword [ebp - 0xc64]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006cb7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x1006c8c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0
push 0
push ebx
push 0x82
push dword [ebp - 0xc60]
call esi
push eax
call edi
test eax, eax
je 0x1006cc1
and dword [ebp - 0x618], 0
jmp 0x1006d09
test byte [ebp - 0xc68], 0x10
je 0x1006c64
push 0xdf
jmp 0x1006e74
push 0
push 0
push ebx
push 0x83
push dword [ebp - 0xc60]
call esi
push eax
call edi
test eax, eax
je 0x1006ce6
mov dword [ebp - 0x618], 1
jmp 0x1006d09
push 0
push 0
push ebx
push 0x84
push dword [ebp - 0xc60]
call esi
push eax
call edi
test eax, eax
je 0x1006d09
mov dword [ebp - 0x618], 2
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x6c
push dword [ebp - 0xc60]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x1006d55
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006d4b
test al, 0x10
je 0x1006d55
push 0xd1
jmp 0x1006e74
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa54]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x6f
push dword [ebp - 0xc60]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
mov dword [ebp - 0x61c], eax
mov dword [esp], 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x6e
push dword [ebp - 0xc60]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
push 0
push 0
push ebx
push 0x70
push dword [ebp - 0xc60]
mov dword [ebp - 0x620], eax
call esi
push eax
call edi
push 0
push 0
neg eax
push ebx
sbb eax, eax
push 0x71
push dword [ebp - 0xc60]
neg eax
mov dword [ebp - 0x644], eax
call esi
push eax
call edi
push 0
push 0
neg eax
push ebx
sbb eax, eax
push 0x72
push dword [ebp - 0xc60]
neg eax
mov dword [ebp - 0x640], eax
call esi
push eax
call edi
push 0
push 0
neg eax
push ebx
sbb eax, eax
push 0x73
push dword [ebp - 0xc60]
neg eax
mov dword [ebp - 0x63c], eax
call esi
push eax
call edi
push 0
push 0
neg eax
push ebx
sbb eax, eax
neg eax
push 0x74
push dword [ebp - 0xc60]
mov dword [ebp - 0x638], eax
call esi
push eax
call edi
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.0100647f
xor eax, eax
inc eax
jmp 0x1006e82
push 0xd0
call fcn.010078fd
push eax
call fcn.01004166
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b1d
leave
ret 4