Function at 0x10c97dc
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x310], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2e8], esi
mov dword [ebp - 0x30c], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9854
test byte [eax + 0x1c], 1
je 0x10c9854
cmp byte [eax + 0x19], 5
jb 0x10c9854
push 0x100f634
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2f0], edi
call fcn.010be75e
lea ecx, [ebp - 0x8c]
call fcn.010be75e
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x2f8], edi
shr eax, 1
and al, 1
push 0x250
mov byte [ebp - 0x2de], al
lea eax, [ebp - 0x2dc]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
and eax, 4
mov byte [esi], 0
mov dword [ebp - 0x314], eax
jne 0x10c98c4
cmp dword [ebx + 8], 0x64
jbe 0x10c98c4
mov edi, 0x80070057
jmp 0x10c9dd6
test dword [ebx], 0x400
mov byte [ebx + 0xc], 1
je 0x10c990e
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9dd6
test byte [eax + 0x1c], 1
je 0x10c9dd6
cmp byte [eax + 0x19], 5
jb 0x10c9dd6
push dword [ebx + 4]
push 0x100f634
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x10c9dd6
mov ecx, dword [ebp - 0x2fc]
lea eax, [ebp - 0x2f4]
push eax
call fcn.010c9793
mov edi, eax
test edi, edi
jge 0x10c9962
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9dd6
test byte [eax + 0x1c], 1
je 0x10c9dd6
cmp byte [eax + 0x19], 2
jb 0x10c9dd6
push edi
push 0x100f634
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10c9dd6
lea eax, [ebp - 0x8c]
push eax
push 0
push dword [ebx + 4]
lea ecx, [ebp - 0x3a0]
call fcn.010be99f
push eax
push 0
push dword [ebp - 0x2f4]
lea ecx, [ebp - 0x35c]
call fcn.010be99f
push eax
call fcn.010c754d
lea ecx, [ebp - 0x35c]
call fcn.010be581
lea ecx, [ebp - 0x3a0]
call fcn.010be581
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.010ca656
mov edi, eax
test edi, edi
jl 0x10c9dd6
mov eax, dword [ebp - 0x2e4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10c99cf
sub eax, edx
sar eax, 1
add eax, 0x106
lea esi, [eax + eax]
push esi
mov dword [ebp - 0x308], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
mov dword [ebp - 0x2ec], ebx
test ebx, ebx
jne 0x10c9a08
mov edi, 0x8007000e
jmp 0x10c9dcb
push esi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x2e4]
push dword [ebp - 0x308]
push ebx
call fcn.010257dc
mov edi, eax
test edi, edi
jl 0x10c9dcb
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10c9a35
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
mov word [ebx + eax*2], cx
lea esi, [ebx + eax*2 + 2]
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x2e4]
lea ecx, [ebp - 0x48]
call fcn.010be795
push 0x100794c
lea ecx, [ebp - 0x48]
call fcn.010be7d0
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x304], eax
cmp eax, 0xffffffff
jne 0x10c9ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10c9add
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9ac4
test byte [eax + 0x1c], 1
je 0x10c9ac4
cmp byte [eax + 0x19], 2
jb 0x10c9ac4
push esi
push dword [ebp - 0x40]
push 0x100f634
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
test esi, esi
jg 0x10c9acf
mov edi, esi
jmp 0x10c9dcb
and esi, 0xffff
or esi, 0x80070000
jmp 0x10c9ac8
xor edi, edi
jmp 0x10c9dcb
mov ecx, 0x1007948
lea eax, [ebp - 0x2b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10c9b15
test dx, dx
je 0x10c9b11
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10c9b15
add eax, 4
add ecx, 4
test dx, dx
jne 0x10c9aef
xor eax, eax
jmp 0x10c9b1a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10c9d48
mov ecx, 0x1007940
lea eax, [ebp - 0x2b0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10c9b53
test dx, dx
je 0x10c9b4f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10c9b53
add eax, 4
add ecx, 4
test dx, dx
jne 0x10c9b2d
xor eax, eax
jmp 0x10c9b58
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10c9d48
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 0x308]
push ebx
call fcn.01040cf0
mov edi, eax
test edi, edi
jl 0x10c9db0
test byte [ebp - 0x2dc], 0x10
je 0x10c9ca2
test dword [ebp - 0x2dc], 0x400
jne 0x10c9ca2
cmp dword [ebp - 0x314], 0
jne 0x10c9bf8
mov eax, dword [ebp - 0x300]
cmp dword [eax + 8], 0x64
jne 0x10c9bf8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9d48
test byte [eax + 0x1c], 1
je 0x10c9d48
cmp byte [eax + 0x19], 3
jb 0x10c9d48
push 0x64
lea ecx, [ebp - 0x2b0]
push ecx
push 0x100f634
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10c9d48
test byte [ebp + 0xc], 8
jne 0x10c9c47
cmp dword [ebp - 0x2f8], 0x64
jb 0x10c9c47
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9c39
test byte [eax + 0x1c], 1
je 0x10c9c39
cmp byte [eax + 0x19], 4
jb 0x10c9c39
push dword [ebp - 0x2e4]
push 0x64
push 0x100f634
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019471
mov eax, dword [ebp - 0x310]
mov byte [eax], 1
jmp 0x10c9d48
lea eax, [ebp - 0x2f0]
push eax
mov eax, dword [ebp - 0x300]
mov eax, dword [eax + 8]
inc eax
push eax
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x2b0]
push eax
call fcn.010c96d5
mov edi, eax
test edi, edi
jl 0x10c9db0
push dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x2fc]
call fcn.010c9623
mov edi, eax
test edi, edi
jl 0x10c9db0
and dword [ebp - 0x2f0], 0
inc dword [ebp - 0x2f8]
jmp 0x10c9d48
lea eax, [ebp - 0x2dd]
push eax
lea eax, [ebp - 0x2dc]
push eax
push ebx
mov byte [ebp - 0x2dd], 1
call fcn.010c906c
mov edi, eax
test edi, edi
jge 0x10c9d3b
cmp dword [ebp - 0x30c], 0
mov bl, byte [ebp - 0x2dd]
mov eax, dword [ebp - 0x2e8]
mov byte [eax], bl
je 0x10c9ceb
push dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0x30c]
mov eax, dword [ecx]
push edi
call dword [eax]
cmp byte [ebp - 0x2de], 0
je 0x10c9e4f
test bl, bl
je 0x10c9e4f
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9d31
test byte [eax + 0x1c], 1
je 0x10c9d31
cmp byte [eax + 0x19], 4
jb 0x10c9d31
push edi
push dword [ebp - 0x2ec]
push 0x100f634
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov ebx, dword [ebp - 0x2ec]
xor edi, edi
jmp 0x10c9d48
mov eax, dword [ebp - 0x318]
add dword [eax], 1
adc dword [eax + 4], 0
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10c9ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x10c9db9
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9d9e
test byte [eax + 0x1c], 1
je 0x10c9d9e
cmp byte [eax + 0x19], 2
jb 0x10c9d9e
push esi
push dword [ebp - 0x40]
push 0x100f634
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
test esi, esi
jle 0x10c9dae
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
mov eax, dword [ebp - 0x2e8]
mov byte [eax], 0
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x2ec]
test ebx, ebx
je 0x10c9dd6
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x2f4]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x2e4]
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2f0]
test ecx, ecx
je 0x10c9dff
push 1
call fcn.010c93a8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9e29
test byte [eax + 0x1c], 1
je 0x10c9e29
cmp byte [eax + 0x19], 5
jb 0x10c9e29
push 0x100f634
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea ecx, [ebp - 0x8c]
call fcn.010be581
lea ecx, [ebp - 0x48]
call fcn.010be581
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0x1c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c9db9
test byte [eax + 0x1c], 1
je 0x10c9db9
cmp byte [eax + 0x19], 2
jb 0x10c9db9
push edi
push dword [ebp - 0x2ec]
push 0x100f634
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10c9db9