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

Disassembly:
push ebp
mov edi, edi
mov eax, dword [0x10060b0]
mov ebp, esp
sub esp, 0x228
and dword [ebp - 0x210], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
test esi, esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], eax
je 0x10026c7
and dword [esi], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1001184
push edi
call ebx
test eax, eax
jne 0x100233e
mov ebx, dword [ebp - 0x218]
mov byte [ebx], 0
mov dword [ebp - 0x210], 1
jmp 0x10026c6
push 0x1001194
push dword [ebp - 0x214]
call ebx
or eax, eax
jne 0x100236d
mov ebx, dword [ebp - 0x218]
mov byte [ebx], 0
mov dword [ebp - 0x210], 1
mov dword [esi], 0x10
jmp 0x10026c6
push 0x1001414
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x100268e
push 0x1001410
push dword [ebp - 0x214]
call ebx
or eax, eax
je 0x100268e
push 0x1001174
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x10023d5
push dword [ebp + 0x20]
push dword [ebp - 0x218]
push 0x1804
push 0x7d4
push 0
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
call fcn.01002079
or eax, eax
jmp 0x100264a
push 0x100117c
push dword [ebp - 0x214]
call ebx
or eax, eax
jne 0x10023fb
push dword [ebp + 0x20]
push dword [ebp - 0x218]
push 0x804
push 0x7d6
jmp 0x10023bb
push 7
push 0x100119c
push edi
call fcn.010021d6
test eax, eax
jne 0x1002463
add edi, 7
je 0x10026c6
mov al, byte [edi]
or al, al
je 0x100242c
cmp al, 0x20
jne 0x100242c
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
test edi, edi
jne 0x1002415
or edi, edi
je 0x10026c6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10026c6
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor ebx, ebx
inc ebx
mov dword [esi], ebx
mov dword [ebp - 0x210], ebx
jmp 0x10026c6
push 0xd
push 0x10011ac
push edi
call fcn.010021d6
test eax, eax
jne 0x10024c6
add edi, 0xd
je 0x10026c6
mov al, byte [edi]
test al, al
je 0x1002494
cmp al, 0x20
jne 0x1002494
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
or edi, edi
jne 0x100247d
test edi, edi
je 0x10026c6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10026c6
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esi], 0x1000
jmp 0x100232f
push 7
push 0x10011a4
push edi
call fcn.010021d6
test eax, eax
jne 0x100250a
add edi, 6
je 0x10026c6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10026c6
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esi], 0x100
jmp 0x100232f
push 5
push 0x10011c8
push edi
call fcn.010021d6
or eax, eax
jne 0x1002526
mov dword [esi], 0x10000
jmp 0x100232f
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100255d
test al, 0x10
push dword [ebp + 0x20]
je 0x1002654
push dword [ebp - 0x218]
push 0x1804
push 0x7d4
push dword [ebp - 0x214]
jmp 0x10023bd
xor edi, edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
cmp eax, 3
jne 0x10025d6
lea eax, [ebp - 0x20c]
push eax
push 0x7d8
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
lea esi, [ebp - 0x220]
lea eax, [ebp - 0x20c]
lea ebx, [ebp - 0x214]
push ebx
push edi
push esi
push edi
push edi
push eax
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x30
push dword [ebp - 0x228]
push dword [ebp - 0x220]
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10026c6
cmp eax, 2
lea eax, [ebp - 0x20c]
push eax
jne 0x100266b
push 0x7d2
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x20c]
lea ebx, [ebp - 0x220]
lea esi, [ebp - 0x214]
push esi
push edi
push ebx
push edi
push edi
push eax
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x34
push dword [ebp - 0x228]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
sub eax, 6
je 0x1002651
dec eax
je 0x10026c6
jmp 0x100232f
push dword [ebp + 0x20]
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x100232f
push 0x7d9
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea eax, [ebp - 0x20c]
push dword [ebp - 0x228]
push eax
push edi
jmp 0x10026c0
lea eax, [ebp - 0x20c]
push 0x208
push eax
push 0x7d7
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x20c]
push 0x40
push dword [ebp - 0x228]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, dword [ebp - 0x210]
call fcn.01004a2f
leave
ret 0x1c