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

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
mov eax, dword [0x10060b0]
add esp, 0xfffffdd8
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
or 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
or 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 eax, dword [ebp - 0x218]
mov byte [eax], 0
mov dword [ebp - 0x210], 1
mov dword [esi], 0x10
jmp 0x10026c6
push 0x1001414
push dword [ebp - 0x214]
call ebx
or eax, eax
je 0x100268e
push 0x1001410
push dword [ebp - 0x214]
call ebx
test 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
test eax, eax
jmp 0x100264a
push 0x100117c
push dword [ebp - 0x214]
call ebx
test 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
or eax, eax
jne 0x1002463
add edi, 7
je 0x10026c6
mov al, byte [edi]
test 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
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]
xor eax, eax
inc eax
mov dword [esi], eax
mov dword [ebp - 0x210], eax
jmp 0x10026c6
push 0xd
push 0x10011ac
push edi
call fcn.010021d6
or 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
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]
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]
or 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
test 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 esi, esi
mov dword [ebp - 0x220], esi
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 ebx, [ebp - 0x214]
push ebx
lea ebx, [ebp - 0x220]
push esi
push ebx
lea eax, [ebp - 0x20c]
push esi
push esi
push eax
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x30
push dword [ebp - 0x228]
push dword [ebp - 0x220]
push esi
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 ebx, [ebp - 0x214]
push ebx
push esi
lea ebx, [ebp - 0x220]
push ebx
lea eax, [ebp - 0x20c]
push esi
push esi
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 ebx, eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
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]
lea eax, [ebp - 0x20c]
push 0x30
push dword [ebp - 0x228]
push eax
push esi
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
mov eax, dword [ebp - 0x210]
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01004a2f
leave
ret 0x1c