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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b55d
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x10080440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push ebx
call fcn.1000b790
mov esi, eax
add esp, 4
test esi, esi
js 0x1000b153
cmp word [ebx + esi*2 + 2], 0
lea eax, [ebx + esi*2]
je 0x1000b153
push eax
lea ecx, [ebp - 0x278]
call fcn.10009820
push ebx
lea ecx, [ebp - 0x284]
mov dword [ebp - 4], 0
call fcn.10009820
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x280]
jae 0x1000af32
mov eax, dword [ebp - 0x284]
xor ecx, ecx
mov dword [ebp - 0x280], esi
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x274]
cmp ecx, 6
jbe 0x1000af5b
mov eax, dword [ebp - 0x278]
push str.:_DATA
lea eax, [eax + ecx*2]
add eax, 0xfffffff4
push eax
call fcn.1000a210
add esp, 8
test al, al
jne 0x1000af6b
push str.:_DATA
lea ecx, [ebp - 0x278]
call fcn.10009c10
push dword [ebp - 0x284]
call fcn.1000be90
add esp, 4
test al, al
mov eax, dword [ebp - 0x284]
je 0x1000afc0
cmp esi, 2
je 0x1000af94
cmp esi, 3
jne 0x1000afc0
cmp word [eax + 4], 0x5c
jne 0x1000afc0
mov ecx, edi
call fcn.1000adc0
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
xor edx, edx
mov dword [ecx + 4], 0
mov word [eax], dx
cmp esi, 2
jne 0x1000afd0
lea eax, [ebp - 0x284]
push eax
call fcn.100098b0
jmp 0x1000afd0
push eax
mov ecx, edi
call fcn.1000aea0
test al, al
je 0x1000b13a
and dword [edi + 0x20], 0xfffffbef
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x294], 0xffffffff
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x290]
call fcn.10009700
mov byte [ebp - 4], 3
nop dword [eax + eax]
lea ecx, [ebp - 0x2b0]
call fcn.10009880
cmp dword [ebp - 0x294], 0xffffffff
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x294]
push eax
je 0x1000b03c
call fcn.1000b530
jmp 0x1000b047
push dword [ebp - 0x290]
call fcn.1000b460
test al, al
je 0x1000b0c3
push dword [ebp - 0x278]
push dword [ebp - 0x2b0]
call fcn.1000a170
add esp, 8
test al, al
jne 0x1000b077
push dword [ebp - 0x2b0]
mov byte [ebp - 4], 3
call fcn.1002c47f
add esp, 4
jmp 0x1000b010
mov eax, dword [ebp - 0x2ac]
cmp eax, 7
jbe 0x1000b09b
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x1000b09b
mov eax, dword [ebp - 0x2b0]
xor edx, edx
mov dword [ebp - 0x2ac], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [edi + 0x28]
call fcn.10009bb0
mov eax, dword [ebp - 0x2a0]
mov bl, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x29c]
mov dword [edi + 4], eax
mov byte [edi + 0x24], 1
jmp 0x1000b0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
sete al
test al, al
je 0x1000b0db
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
push dword [ebp - 0x2b0]
call fcn.1002c47f
push dword [ebp - 0x290]
call fcn.1002c47f
mov eax, dword [ebp - 0x294]
add esp, 8
cmp eax, 0xffffffff
je 0x1000b11c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x294]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x294], ecx
push dword [ebp - 0x284]
call fcn.1002c47f
push dword [ebp - 0x278]
call fcn.1002c47f
add esp, 8
jmp 0x1000b3ad
push dword [ebp - 0x284]
call fcn.1002c47f
push dword [ebp - 0x278]
call fcn.1002c47f
add esp, 8
mov dword [ebp - 0x26c], 0xffffffff
push ebx
mov dword [ebp - 4], 5
xor esi, esi
call fcn.1000bf80
test al, al
mov ecx, 4
cmovne esi, ecx
lea eax, [ebx + esi*2]
push eax
mov dword [ebp - 0x268], eax
call fcn.1000bec0
add esp, 8
test al, al
je 0x1000b1ed
cmp word [ebx + esi*2 + 6], 0
jne 0x1000b1ed
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x298], eax
cmp eax, 0xffffffff
je 0x1000b370
test al, 0x10
je 0x1000b370
mov ecx, edi
call fcn.1000adc0
mov eax, dword [ebp - 0x298]
lea ecx, [edi + 0x28]
push dword [ebp - 0x268]
mov dword [edi + 0x20], eax
call fcn.100099b0
cmp dword [edi + 0x2c], 2
jbe 0x1000b242
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0x2c], 2
mov bl, 1
mov word [eax + 4], cx
jmp 0x1000b3ad
movzx eax, word [ebx]
cmp eax, 0x5c
je 0x1000b1fe
cmp eax, 0x2f
jne 0x1000b370
cmp word [ebx + 2], 0
push ebx
jne 0x1000b249
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x1000b370
test al, 0x10
je 0x1000b370
mov ecx, edi
call fcn.1000adc0
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0x2c], 0
mov word [eax], cx
mov eax, dword [ebp - 0x268]
mov dword [edi + 0x20], eax
mov bl, 1
jmp 0x1000b3ad
call fcn.1000bb70
add esp, 4
test eax, eax
je 0x1000b370
cmp word [ebx + eax*2], 0
lea esi, [ebx + eax*2]
je 0x1000b370
push esi
call fcn.1000b800
add esp, 4
test eax, eax
jns 0x1000b370
push ebx
lea ecx, [ebp - 0x278]
call fcn.10009820
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 6
call fcn.100077b0
push 0x2a
lea ecx, [ebp - 0x278]
call fcn.1000acf0
push edi
push dword [ebp - 0x278]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 0x261], 0
call fcn.1000b3d0
test al, al
je 0x1000b2e7
lea eax, [edi + 0x28]
push 0x1005f9dc
push eax
mov dword [ebp - 0x268], eax
call fcn.10008940
add esp, 8
test al, al
je 0x1000b2e0
mov ecx, dword [ebp - 0x268]
jmp 0x1000b354
mov byte [ebp - 0x261], 1
push ebx
call fcn.1000b5b0
add esp, 4
mov dword [ebp - 0x268], eax
cmp byte [ebp - 0x261], 0
jne 0x1000b334
cmp eax, 0xffffffff
je 0x1000b308
test al, 0x10
jne 0x1000b334
push dword [ebp - 0x278]
mov byte [ebp - 4], 5
call fcn.1002c47f
mov esi, dword [ebp - 0x26c]
add esp, 4
cmp esi, 0xffffffff
je 0x1000b370
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x1000b370
xor bl, bl
jmp 0x1000b3a1
mov ecx, edi
call fcn.1000adc0
cmp dword [ebp - 0x268], 0xffffffff
lea ecx, [edi + 0x28]
mov eax, 0x10
cmovne eax, dword [ebp - 0x268]
mov dword [edi + 0x20], eax
push esi
call fcn.100099b0
push dword [ebp - 0x278]
call fcn.1002c47f
mov esi, dword [ebp - 0x26c]
add esp, 4
jmp 0x1000b39f
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x26c], esi
cmp esi, 0xffffffff
jne 0x1000b38f
xor bl, bl
jmp 0x1000b3ad
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.1000ae40
add esp, 8
mov bl, 1
cmp esi, 0xffffffff
je 0x1000b3ad
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c484
mov esp, ebp
pop ebp
ret 4