Function at 0x1009ba40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f32d6
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x101383dc]
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 eax, 0x10180128
xor ecx, ecx
mov byte [ecx + 0x1013f125], 0
lea eax, [eax + 4]
mov dword [eax - 0x1004], 0
add ecx, 0x100
mov dword [eax - 4], 0
cmp ecx, 0x40000
jb 0x1009ba75
mov ecx, dword [0x10186a24]
mov esi, 0x7fffffff
mov eax, esi
sub eax, ecx
cmp eax, 8
jb 0x1009bd6e
cmp dword [0x10186a28], 0x10
mov eax, 0x10186a14
push 8
cmovae eax, dword [0x10186a14]
push str.Content_
push ecx
push eax
push ecx
push dword [ebp - 0x49c]
lea ecx, [ebp - 0x358]
call fcn.10018fb0
mov dword [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0x348]
sub eax, ecx
cmp eax, 8
jb 0x1009bd73
cmp dword [ebp - 0x344], 0x10
lea eax, [ebp - 0x358]
push 8
cmovae eax, dword [ebp - 0x358]
push str.texture_
push ecx
push eax
push ecx
push dword [ebp - 0x49c]
lea ecx, [ebp - 0x340]
call fcn.10018fb0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x330]
sub esi, ecx
cmp esi, 5
jb 0x1009bd78
cmp dword [ebp - 0x32c], 0x10
lea eax, [ebp - 0x340]
push 5
cmovae eax, dword [ebp - 0x340]
push str.wall_
push ecx
push eax
push ecx
push dword [ebp - 0x49c]
lea ecx, [ebp - 0x328]
call fcn.10018fb0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x328]
cmp dword [ebp - 0x314], 0x10
push 0x10129984
cmovae eax, dword [ebp - 0x328]
push eax
lea eax, [ebp - 0x210]
push str._s_s
push eax
call fcn.10002ee0
add esp, 0x10
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov esi, 0x1f5
cmp ebx, 0xffffffff
je 0x1009bc91
mov edi, 0x1015e625
nop dword [eax]
test byte [ebp - 0x498], 0x10
jne 0x1009bc74
cmp esi, 0x400
jge 0x1009bc74
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x310]
push 0x101214dc
push eax
call fcn.10002ee0
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x110]
push 0x101214dc
push eax
call fcn.10002ee0
lea eax, [ebp - 0x110]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009bc28
sub eax, edx
cmp eax, 4
jle 0x1009bc4b
add eax, 0xfffffffc
cmp eax, 0x100
jae 0x1009bd82
mov byte [ebp + eax - 0x110], cl
lea eax, [ebp - 0x110]
push eax
push 0x101214dc
push edi
call fcn.10002ee0
add esp, 0xc
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.1009b6f0
inc esi
add edi, 0x100
lea eax, [ebp - 0x498]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1009bbd0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x314]
cmp ecx, 0x10
jb 0x1009bccb
mov edx, dword [ebp - 0x328]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009bcc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009bd7d
push ecx
push edx
call fcn.100c3236
add esp, 8
mov ecx, dword [ebp - 0x32c]
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
cmp ecx, 0x10
jb 0x1009bd1c
mov edx, dword [ebp - 0x340]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009bd12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009bd7d
push ecx
push edx
call fcn.100c3236
add esp, 8
mov ecx, dword [ebp - 0x344]
cmp ecx, 0x10
jb 0x1009bd52
mov edx, dword [ebp - 0x358]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009bd48
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009bd7d
push ecx
push edx
call fcn.100c3236
add esp, 8
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.100c2ed5
mov esp, ebp
pop ebp
ret
call fcn.100030c0
call fcn.100030c0
call fcn.100030c0
call fcn.100cbff5
call fcn.100c3720
int3