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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x18]
test ebx, ebx
push esi
mov esi, dword [ebp + 0x10]
je 0x1002383
and dword [ebx], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x1001164
push esi
call edi
test eax, eax
jne 0x1002088
mov eax, dword [ebp + 0x1c]
and byte [eax], 0
mov dword [ebp - 4], 1
jmp 0x1002382
push 0x1001174
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x10020ae
mov eax, dword [ebp + 0x1c]
and byte [eax], 0
mov dword [ebp - 4], 1
mov dword [ebx], 0x10
jmp 0x1002382
push 0x10013f4
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x1002353
push 0x10013f0
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x1002353
push 0x1001154
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x1002101
push dword [ebp + 0x1c]
push 0x1804
push 0x7d4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01001e94
test eax, eax
jmp 0x100231e
push 0x100115c
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x100211e
push dword [ebp + 0x1c]
push 0x804
push 0x7d6
jmp 0x10020ed
push 7
push 0x100117c
push esi
call fcn.01001f71
test eax, eax
jne 0x100217d
add esi, 7
je 0x1002382
mov al, byte [esi]
test al, al
je 0x100214f
cmp al, 0x20
jne 0x100214f
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
test esi, esi
jne 0x1002138
test esi, esi
je 0x1002382
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002382
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
inc eax
mov dword [ebx], eax
mov dword [ebp - 4], eax
jmp 0x1002382
push 0xd
push 0x100118c
push esi
call fcn.01001f71
test eax, eax
jne 0x10021da
add esi, 0xd
je 0x1002382
mov al, byte [esi]
test al, al
je 0x10021ae
cmp al, 0x20
jne 0x10021ae
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
test esi, esi
jne 0x1002197
test esi, esi
je 0x1002382
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002382
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebx], 0x1000
jmp 0x100207c
push 7
push 0x1001184
push esi
call fcn.01001f71
test eax, eax
jne 0x1002218
add esi, 6
je 0x1002382
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002382
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebx], 0x100
jmp 0x100207c
push 5
push 0x10011a8
push esi
call fcn.01001f71
test eax, eax
jne 0x1002234
mov dword [ebx], 0x10000
jmp 0x100207c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100225f
test al, 0x10
je 0x1002325
push dword [ebp + 0x1c]
push 0x1804
push 0x7d4
push dword [ebp + 0x10]
jmp 0x10020ef
xor esi, esi
mov dword [ebp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
push 0x208
jne 0x10022c3
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 + 0x18]
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 + 0x18]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002382
cmp eax, 2
lea eax, [ebp - 0x20c]
push eax
jne 0x1002336
push 0x7d2
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0x18]
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 + 0x18]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
sub eax, 6
je 0x1002325
dec eax
je 0x1002382
jmp 0x100207c
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x100207c
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 0x100237c
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 eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x18