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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x628
dec eax
push ebx
push esi
push edi
je 0x10002ac6
sub eax, 2
je 0x1000298f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 1
rep stosd dword es:[edi], eax
call fcn.1000a800
mov ecx, dword [esp + 0x63c]
add esp, 4
lea edx, [esp + 0x10]
lea ecx, [ecx + ecx*2]
push 0x5c
shl ecx, 6
mov edi, dword [eax + ecx + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x15], al
mov al, byte [esp + 0x14]
cmp al, 0x5c
jne 0x1000289c
lea ecx, [esp + 0x16]
push ecx
jmp 0x100028a1
lea edx, [esp + 0x17]
push edx
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
call ebx
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x100028c2
cmp cl, 0x5c
jne 0x100028ba
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100028b2
mov esi, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 0xffffffff
je 0x100028f4
test al, 0x10
je 0x100028f4
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov byte [esp + esi + 0x14], 0x5c
jmp 0x100028cd
lea ebp, [esp + esi + 0x15]
push 0x20
push ebp
mov byte [esp + esi + 0x1c], 0
call ebx
add esp, 8
test eax, eax
je 0x10002914
push 0x20
push ebp
call ebx
add esp, 8
mov byte [eax], 0
mov ecx, dword [esp + 0x644]
mov edx, dword [esp + 0x640]
mov esi, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
pop ebp
lea edx, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x628
ret
push 1
call fcn.1000a800
mov ecx, dword [esp + 0x63c]
push 0x100
lea ecx, [ecx + ecx*2]
shl ecx, 6
mov esi, dword [eax + ecx + 0x90]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + esi + 1]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x21c]
lea ebx, [ecx + edx + 1]
mov ecx, 0x107
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11c]
push eax
push 0x100
lea eax, [esp + 0x224]
push ecx
push eax
push ebx
push edx
push esi
mov dword [esp + 0x238], 0x41d
call fcn.10017750
mov ecx, dword [esp + 0x664]
mov ebx, dword [esp + 0x660]
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0x5c
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x114]
lea edx, [ecx + ebx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x10]
mov edi, esi
lea edx, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x628
ret
push 1
call fcn.1000a800
mov ecx, dword [esp + 0x63c]
add esp, 4
lea ecx, [ecx + ecx*2]
shl ecx, 6
mov edi, dword [eax + ecx + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x63c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x628
ret