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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10060b0]
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]
test esi, esi
push edi
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 0x1002693
and dword [esi], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1001184
push edi
call ebx
test eax, eax
jne 0x100230a
mov eax, dword [ebp - 0x218]
mov byte [eax], 0
mov dword [ebp - 0x210], 1
jmp 0x1002692
push 0x1001194
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x1002339
mov eax, dword [ebp - 0x218]
mov byte [eax], 0
mov dword [ebp - 0x210], 1
mov dword [esi], 0x10
jmp 0x1002692
push 0x10013e0
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x100265a
push 0x10013dc
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x100265a
push 0x1001174
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x10023a1
push dword [ebp + 0x20]
push dword [ebp - 0x218]
push 0x1804
push 0x7d4
push 0
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
call fcn.01002045
test eax, eax
jmp 0x1002616
push 0x100117c
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x10023c7
push dword [ebp + 0x20]
push dword [ebp - 0x218]
push 0x804
push 0x7d6
jmp 0x1002387
push 7
push 0x100119c
push edi
call fcn.010021a2
test eax, eax
jne 0x100242f
add edi, 7
je 0x1002692
mov al, byte [edi]
test al, al
je 0x10023f8
cmp al, 0x20
jne 0x10023f8
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
test edi, edi
jne 0x10023e1
test edi, edi
je 0x1002692
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002692
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 0x1002692
push 0xd
push 0x10011ac
push edi
call fcn.010021a2
test eax, eax
jne 0x1002492
add edi, 0xd
je 0x1002692
mov al, byte [edi]
test al, al
je 0x1002460
cmp al, 0x20
jne 0x1002460
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
test edi, edi
jne 0x1002449
test edi, edi
je 0x1002692
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002692
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esi], 0x1000
jmp 0x10022fb
push 7
push 0x10011a4
push edi
call fcn.010021a2
test eax, eax
jne 0x10024d6
add edi, 6
je 0x1002692
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002692
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esi], 0x100
jmp 0x10022fb
push 5
push 0x10011c8
push edi
call fcn.010021a2
test eax, eax
jne 0x10024f2
mov dword [esi], 0x10000
jmp 0x10022fb
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002529
test al, 0x10
push dword [ebp + 0x20]
je 0x1002620
push dword [ebp - 0x218]
push 0x1804
push 0x7d4
push dword [ebp - 0x214]
jmp 0x1002389
xor esi, esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
push 0x208
jne 0x10025a2
lea eax, [ebp - 0x20c]
push eax
push 0x7d8
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x220]
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 - 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 0x1002692
cmp eax, 2
lea eax, [ebp - 0x20c]
push eax
jne 0x1002637
push 0x7d2
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x220]
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 - 0x228]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x220]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
sub eax, 6
je 0x100261d
dec eax
je 0x1002692
jmp 0x10022fb
push dword [ebp + 0x20]
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x10022fb
push 0x7d9
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
push dword [ebp - 0x228]
lea eax, [ebp - 0x20c]
push eax
push esi
jmp 0x100268c
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0x7d7
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
push dword [ebp - 0x228]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
call fcn.010048f0
leave
ret 0x1c