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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10050ac]
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 0x18]
test ebx, ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
je 0x10024e7
and dword [ebx], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1001184
push esi
call edi
test eax, eax
jne 0x10021bc
mov eax, dword [ebp + 0x1c]
mov byte [eax], 0
mov dword [ebp - 0x210], 1
jmp 0x10024e6
push 0x1001194
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x10021e5
mov eax, dword [ebp + 0x1c]
mov byte [eax], 0
mov dword [ebp - 0x210], 1
mov dword [ebx], 0x10
jmp 0x10024e6
push 0x1001414
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x10024b7
push 0x1001410
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x10024b7
push 0x1001174
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x100223b
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0x1804
push 0x7d4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01001f7a
test eax, eax
jmp 0x100247f
push 0x100117c
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x100225b
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0x804
push 0x7d6
jmp 0x1002227
push 7
push 0x100119c
push esi
call fcn.0100208a
test eax, eax
jne 0x10022c0
add esi, 7
je 0x10024e6
mov al, byte [esi]
test al, al
je 0x100228c
cmp al, 0x20
jne 0x100228c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
test esi, esi
jne 0x1002275
test esi, esi
je 0x10024e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10024e6
push dword [ebp + 0x20]
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
inc eax
mov dword [ebx], eax
mov dword [ebp - 0x210], eax
jmp 0x10024e6
push 0xd
push 0x10011ac
push esi
call fcn.0100208a
test eax, eax
jne 0x1002320
add esi, 0xd
je 0x10024e6
mov al, byte [esi]
test al, al
je 0x10022f1
cmp al, 0x20
jne 0x10022f1
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
test esi, esi
jne 0x10022da
test esi, esi
je 0x10024e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10024e6
push dword [ebp + 0x20]
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebx], 0x1000
jmp 0x10021ad
push 7
push 0x10011a4
push esi
call fcn.0100208a
test eax, eax
jne 0x1002361
add esi, 6
je 0x10024e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10024e6
push dword [ebp + 0x20]
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebx], 0x100
jmp 0x10021ad
push 5
push 0x10011c8
push esi
call fcn.0100208a
test eax, eax
jne 0x100237d
mov dword [ebx], 0x10000
jmp 0x10021ad
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10023ab
test al, 0x10
push dword [ebp + 0x20]
je 0x1002489
push dword [ebp + 0x1c]
push 0x1804
push 0x7d4
push dword [ebp + 0x10]
jmp 0x1002229
xor esi, esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
push 0x208
jne 0x100241b
lea eax, [ebp - 0x20c]
push eax
push 0x7d8
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x30
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10024e6
cmp eax, 2
lea eax, [ebp - 0x20c]
push eax
jne 0x100249a
push 0x7d2
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x34
push dword [ebp + 0x14]
push dword [ebp - 0x214]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
sub eax, 6
je 0x1002486
dec eax
je 0x10024e6
jmp 0x10021ad
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x10021ad
push 0x7d9
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push esi
jmp 0x10024e0
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0x7d7
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop esi
pop ebx
call fcn.0100448b
leave
ret 0x1c