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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc60
push ebx
push esi
push edi
lea eax, [ebp - 0x858]
push eax
call fcn.01005aef
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x210]
push eax
call fcn.01006d90
mov esi, eax
test esi, esi
je 0x1006078
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1006087
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10063ab
test bl, 0x10
je 0x10063ab
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x10060c1
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x858]
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 dword [ebp + 8]
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 - 0x22c], eax
lea eax, [ebp - 0x210]
push eax
push 0x69
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp dword [ebp - 0x22c], 0
je 0x100625d
lea eax, [ebp - 0x210]
push eax
call fcn.01006d90
test eax, eax
mov dword [ebp - 4], eax
je 0x100613a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x100614a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100620b
lea eax, [ebp - 0x210]
push eax
call fcn.01006d90
test eax, eax
mov dword [ebp - 4], eax
jne 0x100616d
lea eax, [ebp - 0x210]
push 0
push 0
lea ecx, [ebp - 0xc60]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wsplitpath]
push 0
push 0
lea eax, [ebp - 0xc60]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.msvcrt.dll__wmakepath]
add esp, 0x28
cmp dword [ebp - 4], 0
je 0x10061b2
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebp - 0xa60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006211
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x10061ec
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0
push 0
push ebx
push 0x82
push dword [ebp + 8]
call esi
push eax
call edi
test eax, eax
je 0x100621b
and dword [ebp - 0x214], 0
jmp 0x100625d
test byte [ebp - 8], 0x10
je 0x10061c4
push 0xdf
jmp 0x10063b0
push 0
push 0
push ebx
push 0x83
push dword [ebp + 8]
call esi
push eax
call edi
test eax, eax
je 0x100623d
mov dword [ebp - 0x214], 1
jmp 0x100625d
push 0
push 0
push ebx
push 0x84
push dword [ebp + 8]
call esi
push eax
call edi
test eax, eax
je 0x100625d
mov dword [ebp - 0x214], 2
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x6c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jbe 0x10062a6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100629c
test al, 0x10
je 0x10062a6
push 0xd1
jmp 0x10063b0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x6f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
mov dword [ebp - 0x218], eax
mov dword [esp], 0x100
lea eax, [ebp - 0x210]
push eax
push 0x6e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
push 0
push 0
push ebx
push 0x70
push dword [ebp + 8]
mov dword [ebp - 0x21c], eax
call esi
push eax
call edi
push 0
push 0
neg eax
push ebx
sbb eax, eax
push 0x71
push dword [ebp + 8]
neg eax
mov dword [ebp - 0x240], eax
call esi
push eax
call edi
push 0
push 0
neg eax
push ebx
sbb eax, eax
push 0x72
push dword [ebp + 8]
neg eax
mov dword [ebp - 0x23c], eax
call esi
push eax
call edi
push 0
push 0
neg eax
push ebx
sbb eax, eax
push 0x73
push dword [ebp + 8]
neg eax
mov dword [ebp - 0x238], 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 + 8]
mov dword [ebp - 0x234], eax
call esi
push eax
call edi
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x858]
push eax
call fcn.01005b24
xor eax, eax
inc eax
jmp 0x10063be
push 0xd0
call fcn.01006d4e
push eax
call fcn.01003c77
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4