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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024df0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
cmp dword [eax + 0x14], 0x10
mov esi, eax
mov dword [ebp - 4], 0
jb 0x1001a18b
mov esi, dword [eax]
test esi, esi
je 0x1001a6fd
cmp byte [esi], 0
je 0x1001a6fd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001a6fd
test al, 0x10
jne 0x1001a1c1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x14
jmp 0x1001a709
push 0x350
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x8c], edi
test edi, edi
jne 0x1001a1f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [ebp - 0x88]
mov dword [eax], 0xc
jmp 0x1001a709
lea eax, [edi + 0x104]
push eax
push esi
call fcn.1001a740
add esp, 8
mov dword [edi + 0x244], eax
cmp eax, 0xffffffff
jne 0x1001a222
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [ebp - 0x88]
add esp, 4
jmp 0x1001a709
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call esi
lea ecx, [edi + 0x130]
lea eax, [edi + 0x248]
push ecx
push eax
call esi
push edi
call fcn.1001a8f0
mov edx, eax
add esp, 4
test edx, edx
je 0x1001a6c2
nop
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a267
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10015000
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp edi, 0x10
mov ecx, dword [ebp - 0x18]
cmovae eax, esi
mov byte [ebp - 4], 1
cmp ecx, 1
jne 0x1001a29a
cmp byte [eax], 0x2e
je 0x1001a2b2
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp ecx, 2
jne 0x1001a2e7
mov ecx, 0x2e2e
cmp word [eax], cx
jne 0x1001a2e7
mov byte [ebp - 4], 0
cmp edi, 0x10
jb 0x1001a658
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1001a2e0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push ecx
push esi
jmp 0x1001a650
push 0x10033010
push dword [ebp - 0x84]
lea eax, [ebp - 0x58]
push eax
call fcn.10009210
add esp, 0xc
mov ecx, eax
push dword [ebp - 0x18]
cmp edi, 0x10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmovae eax, esi
push eax
call fcn.10014ea0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.1001aba0
mov edx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 0x71], al
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1001a391
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a387
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push edx
push ecx
call fcn.10012a0e
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1001a3db
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a3d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push edx
push ecx
call fcn.10012a0e
add esp, 8
push 0x10033010
push dword [ebp - 0x84]
lea eax, [ebp - 0x58]
push eax
call fcn.10009210
add esp, 0xc
mov ecx, eax
cmp byte [ebp - 0x71], 0
je 0x1001a53f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.10014ea0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.1001a120
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x1001a495
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a48b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push edx
push ecx
call fcn.10012a0e
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x1001a4df
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a4d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push edx
push ecx
call fcn.10012a0e
add esp, 8
mov edi, dword [ebp - 0x94]
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp esi, edi
je 0x1001a52f
mov eax, dword [ebp - 0x7c]
push esi
cmp eax, dword [ebp - 0x78]
je 0x1001a51c
mov ecx, eax
call fcn.1000fd00
mov eax, dword [ebp - 0x7c]
add eax, 0x18
mov dword [ebp - 0x7c], eax
jmp 0x1001a528
push eax
lea ecx, [ebp - 0x80]
call fcn.10019cb0
mov eax, dword [ebp - 0x7c]
add esi, 0x18
cmp esi, edi
jne 0x1001a504
lea ecx, [ebp - 0x98]
call fcn.10013fa0
jmp 0x1001a620
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 9
call fcn.10014ea0
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
movups xmmword [ebp - 0x70], xmm0
mov dword [eax + 0x10], 0
movq qword [ebp - 0x60], xmm1
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0xa
cmp eax, dword [ebp - 0x78]
je 0x1001a5a3
mov dword [eax + 0x10], 0
mov edx, 0xf
movups xmmword [eax], xmm0
mov byte [ebp - 0x70], 0
movq qword [eax + 0x10], xmm1
add dword [ebp - 0x7c], 0x18
jmp 0x1001a5b3
lea ecx, [ebp - 0x70]
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.10019e10
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x1001a5e8
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a5de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push edx
push ecx
call fcn.10012a0e
add esp, 8
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1001a620
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a616
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push edx
push ecx
call fcn.10012a0e
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1001a658
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a64e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6f7
push edx
push ecx
call fcn.10012a0e
add esp, 8
mov edi, dword [ebp - 0x8c]
cmp dword [edi + 0x244], 0xffffffff
jne 0x1001a677
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor edx, edx
mov dword [eax], 9
jmp 0x1001a6ba
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x248]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 0x104]
push eax
push dword [edi + 0x244]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001a6b8
push dword [edi + 0x244]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x244], 0xffffffff
mov edx, esi
test edx, edx
jne 0x1001a250
mov eax, dword [edi + 0x244]
cmp eax, 0xffffffff
je 0x1001a6d4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x88]
add esp, 4
mov ecx, dword [ebp - 0x80]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 8], ecx
jmp 0x1001a71c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 2
mov eax, dword [ebp - 0x80]
mov dword [edi], eax
mov eax, dword [ebp - 0x7c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [edi + 8], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret