Function at 0x1003288
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x100c050]
or dword [ebp - 0x8c4], 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8cc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c8], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x8d0], eax
lea eax, [ebp - 0x8d8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x8c0], 1
push ebx
call fcn.010024ee
test eax, eax
mov dword [ebp - 0x8d4], eax
je 0x10035f5
push 0x10014d4
push dword [ebp - 0x8d8]
push eax
call fcn.01002613
test eax, eax
jge 0x100330a
and dword [ebp - 0x8c0], 0
jmp 0x10035d0
push esi
lea eax, [ebp - 0x8bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x8c4], eax
jne 0x100334c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x10035cf
call esi
cmp eax, 3
je 0x10035cf
and dword [ebp - 0x8c0], 0
jmp 0x10035cf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
push 0x10014c8
mov esi, eax
call edi
add esi, eax
lea eax, [ebp - 0x890]
push eax
call edi
lea eax, [esi + eax + 1]
cmp eax, dword [ebp + 0xc]
jae 0x10035aa
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x8d8]
push dword [ebp - 0x8d4]
call fcn.01002613
test eax, eax
jl 0x10035c7
test byte [ebp - 0x8bc], 0x10
je 0x100342c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10014c4
lea eax, [ebp - 0x890]
push eax
call esi
test eax, eax
je 0x10035aa
push 0x10014bc
lea eax, [ebp - 0x890]
push eax
call esi
test eax, eax
je 0x10035aa
test byte [ebp - 0x8bb], 4
jne 0x10035aa
mov esi, dword [ebp - 0x8d0]
test esi, esi
je 0x100340c
jmp 0x1003406
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10035aa
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x10033ef
push dword [ebp - 0x8d0]
push dword [ebp - 0x8c8]
push dword [ebp - 0x8cc]
push dword [ebp + 0xc]
push ebx
call fcn.01003288
jmp 0x10035aa
mov eax, dword [ebp - 0x89c]
add dword [0x100ca0c], eax
cmp dword [ebp - 0x8c8], 0
je 0x10035aa
lea eax, [ebp - 0x890]
xor esi, esi
push eax
inc esi
call edi
cmp eax, 6
jl 0x100348c
push 6
lea eax, [ebp - 0x890]
push eax
push 6
push 0x10014ac
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x100348c
xor eax, eax
cmp dword [0x100ca04], eax
setne al
mov esi, eax
test esi, esi
je 0x10035aa
cmp dword [0x100d350], 0
mov eax, dword [ebp - 0x89c]
je 0x10034a4
cmp eax, 0x800
ja 0x10034a4
xor esi, esi
test esi, esi
je 0x10035aa
cmp eax, 0x400
ja 0x10034b8
xor eax, eax
inc eax
jmp 0x10034bb
shr eax, 0xa
push eax
push 0x100d2c0
lea eax, [ebp - 0x54]
push 0x28
push eax
call fcn.01002635
add esp, 0x10
test eax, eax
jl 0x10035c7
push 0x30c
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0x8cc]
xor esi, esi
push ebx
mov dword [ebp - 0x90c], 0xd
mov dword [ebp - 0x908], esi
mov dword [ebp - 0x904], esi
mov dword [ebp - 0x900], esi
mov dword [ebp - 0x8fc], 3
call fcn.01002e18
test eax, eax
lea eax, [ebp - 0x66c]
jne 0x1003527
mov eax, dword [ebp - 0x8cc]
mov dword [ebp - 0x8f8], eax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x8ec], eax
lea eax, [ebp - 0x90c]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x104d
push dword [ebp - 0x8c8]
call esi
and dword [ebp - 0x900], 0
mov dword [ebp - 0x908], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x8f8], eax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x8ec], eax
lea eax, [ebp - 0x90c]
push eax
push 0
push 0x104c
push dword [ebp - 0x8c8]
mov dword [ebp - 0x90c], 9
mov dword [ebp - 0x904], 1
mov dword [ebp - 0x8fc], 3
call esi
lea eax, [ebp - 0x8bc]
push eax
push dword [ebp - 0x8c4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1003353
jmp 0x10035ce
and dword [ebp - 0x8c0], 0
pop edi
pop esi
mov eax, dword [ebp - 0x8d4]
and word [eax], 0
cmp dword [ebp - 0x8c4], 0xffffffff
je 0x10035ef
push dword [ebp - 0x8c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x8c0]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01004073
leave
ret 0x14