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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push edi
push 0x16
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
push 0x50
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3a4]
push eax
push 0x65
push dword [0x1017cf4]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x1011b17
push 0x66
push 0x64
push 0x30
push dword [0x1017cf4]
push dword [0x1017660]
call fcn.01006260
add esp, 0x14
xor eax, eax
jmp 0x1011d0e
mov edi, dword [ebp + 8]
push esi
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x1011b44
mov eax, edi
shl eax, 4
push dword [eax + 0x1017d04]
lea eax, [ebp - 0xf8]
push str._s_Directory
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x1011b4b
mov word [ebp - 0xf8], bx
mov esi, 0x20a
lea eax, [ebp - 0x304]
push esi
push eax
lea eax, [ebp - 0xf8]
push ebx
push eax
push str.Options
call fcn.010123e4
test eax, eax
jne 0x1011ba4
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1011ba4
test al, 0x10
je 0x1011ba4
mov eax, dword [0x1017120]
cmp eax, ebx
je 0x1011b93
push eax
call fcn.01001ab8
lea eax, [ebp - 0x304]
push eax
call fcn.01001a80
mov dword [0x1017120], eax
cmp dword [0x1017120], ebx
jne 0x1011bdd
lea eax, [ebp - 0x304]
push esi
push eax
call fcn.01011d13
test eax, eax
je 0x1011bdd
mov eax, dword [0x1017120]
cmp eax, ebx
je 0x1011bcc
push eax
call fcn.01001ab8
lea eax, [ebp - 0x304]
push eax
call fcn.01001a80
mov dword [0x1017120], eax
mov eax, dword [0x1017660]
cmp edi, ebx
mov dword [ebp - 0x54], eax
mov eax, dword [0x1017cf4]
mov dword [ebp - 0x50], eax
mov eax, dword [0x10185c4]
mov word [ebp - 0x304], bx
mov dword [ebp - 0x58], 0x58
mov dword [ebp - 0x4c], eax
jne 0x1011c12
mov eax, dword [0x1016f54]
inc eax
mov dword [ebp - 0x40], eax
jmp 0x1011c15
mov dword [ebp - 0x40], edi
cmp dword [0x10152a4], ebx
lea eax, [ebp - 0x304]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x1017120]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x5804
jne 0x1011c55
push 0x1018910
push 0x10152a0
push str.ComDlg32
call fcn.01006112
lea eax, [ebp - 0x58]
push eax
call dword [0x10152a4]
mov edi, eax
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp edi, ebx
je 0x1011d0a
mov eax, dword [0x1016f54]
mov esi, dword [ebp - 0x40]
inc eax
sub esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x40]
mov eax, esi
shl eax, 4
push dword [eax + 0x1017d04]
lea eax, [ebp - 0x304]
push eax
call fcn.01011d64
mov edi, eax
lea eax, [ebp - 0x304]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x1011d0a
mov word [eax], bx
mov eax, dword [0x1017120]
cmp eax, ebx
je 0x1011ccb
push eax
call fcn.01001ab8
lea eax, [ebp - 0x304]
push eax
call fcn.01001a80
cmp esi, ebx
mov dword [0x1017120], eax
je 0x1011d0a
cmp eax, ebx
je 0x1011d0a
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xf8]
push dword [0x1017120]
push 1
push eax
push str.Options
call fcn.0101233f
pop ebx
mov eax, edi
pop esi
pop edi
leave
ret 8