Function at 0x1000c930
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x100]
cmp eax, 3
push esi
push edi
ja case.0x1000c94d.3
xor ebx, ebx
mov ecx, dword [sym.imp.MSVCRT.dll_sprintf]
jmp dword [eax*4 + 0x1000ceb8]
mov eax, dword [ebp + 0x104]
cmp eax, ebx
jne 0x1000c9af
lea eax, [ebp + 0x108]
push eax
lea ecx, [ebp + 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x248], eax
inc dword [ebp + 0x104]
lea edi, [ebp + 0x134]
mov esi, 0x1002e8c8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000c9f2
test cl, cl
je 0x1000c9ab
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000c9f2
add eax, 2
add esi, 2
test cl, cl
jne 0x1000c98b
xor eax, eax
jmp 0x1000c9f7
inc eax
lea edx, [ebp + 0x108]
mov dword [ebp + 0x104], eax
mov eax, dword [ebp + 0x248]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000c97e
inc dword [ebp + 0x100]
mov ecx, dword [ebp + 0x248]
push ecx
mov dword [ebp + 0x104], ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 0x248], ebx
jmp 0x1000ce7f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1000ce7f
mov esi, 0x1002eab0
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000ca2a
test cl, cl
je 0x1000ca26
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000ca2a
add eax, 2
add esi, 2
test cl, cl
jne 0x1000ca06
xor eax, eax
jmp 0x1000ca2f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1000ce7f
cmp dword [ebp + 0x248], 0xffffffff
jne 0x1000ce95
jmp 0x1000ce7f
mov eax, dword [ebp + 0x24c]
cmp eax, ebx
jne 0x1000ca62
mov dword [ebp + 0x100], 3
jmp 0x1000ce7f
mov edx, dword [ebp + 0x104]
cmp edx, dword [eax + 0x10]
jne 0x1000cb48
cmp dword [ebp + 0x550], 1
jne 0x1000cab0
mov esi, dword [sym.rlmfc.dll_class_R_DLList_int___R_File::m_findDirIDList]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esi + 0xc]
lea ecx, [eax - 8]
mov dword [edi + 4], ecx
lea edx, [esi + 0xc]
mov dword [ecx], edi
mov dword [ecx + 4], edx
mov dword [edx], ecx
inc dword [esi + 0x14]
mov ecx, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esi + 0x18], 0x7fffffff
mov dword [eax], 0xffffffff
mov edx, dword [ebp + 0x24c]
mov eax, dword [edx - 4]
cmp dword [eax + 4], ebx
je 0x1000cac3
add eax, 8
jmp 0x1000cac5
xor eax, eax
cmp eax, ebx
mov dword [ebp + 0x24c], eax
mov dword [ebp + 0x550], 1
jne 0x1000cb42
mov eax, dword [sym.rlmfc.dll_class_R_DLList_struct_R_File::R_RASArchive___R_File::RASArchiveList]
mov eax, dword [eax + 8]
cmp dword [eax + 4], ebx
je 0x1000caeb
add eax, 8
jmp 0x1000caed
xor eax, eax
mov esi, dword [ebp + 0x100]
inc esi
mov dword [ebp + 0x24c], eax
mov dword [ebp + 0x100], esi
mov dword [ebp + 0x104], ebx
mov edx, dword [sym.rlmfc.dll_class_R_DLList_int___R_File::m_findDirIDList]
mov eax, dword [edx + 8]
cmp dword [eax + 4], ebx
je 0x1000cb19
add eax, 8
jmp 0x1000cb1b
xor eax, eax
cmp eax, ebx
mov dword [ebp + 0x564], eax
je 0x1000ca53
mov eax, dword [eax]
push eax
lea edx, [ebp + 0x554]
push str._05i
push edx
call ecx
add esp, 0xc
jmp 0x1000ce7f
mov dword [ebp + 0x104], ebx
mov ecx, dword [ebp + 0x24c]
mov eax, dword [ebp + 0x104]
cmp eax, dword [ecx + 0x10]
je 0x1000ce7f
cmp dword [ebp + 0x550], 1
jne 0x1000cbf8
mov eax, dword [ebp + 0x104]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + edx*8]
lea esi, [ebp + 0x250]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000cba3
test cl, cl
je 0x1000cb9f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000cba3
add eax, 2
add esi, 2
test cl, cl
jne 0x1000cb7f
xor eax, eax
jmp 0x1000cba8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1000cbf8
mov esi, dword [sym.rlmfc.dll_class_R_DLList_int___R_File::m_findDirIDList]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esi + 0xc]
lea edx, [esi + 0xc]
lea ecx, [eax - 8]
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [ecx + 4], edx
mov dword [edx], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], 0x7fffffff
inc ecx
mov dword [esi + 0x14], ecx
mov edx, dword [ebp + 0x24c]
mov ecx, dword [ebp + 0x104]
mov edx, dword [edx + 0x30]
lea ecx, [ecx + ecx*2]
mov ecx, dword [edx + ecx*8 + 0x14]
mov dword [eax], ecx
mov dword [ebp + 0x550], ebx
mov edx, dword [ebp + 0x24c]
mov eax, dword [ebp + 0x104]
mov ecx, dword [edx + 0x30]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8]
lea edi, [ebp + 0x250]
push edi
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1000cce8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push 0x1002e62c
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp eax, ebx
je 0x1000cce8
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
ja 0x1000cce8
or ecx, 0xffffffff
lea edi, [ebp + 0x250]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
or ecx, 0xffffffff
add edi, esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea ebx, [ebp + 0x450]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000ccb2
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp + 0x44f], al
mov edx, ebx
mov ecx, ebp
call sym.rlmfc.dll_private:_static_int___fastcall_R_File::xstricmp_char_const___char_const__
cmp eax, 1
je 0x1000cea0
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10031804
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov esi, dword [ebp + 0x104]
mov ecx, dword [ebp + 0x24c]
inc esi
mov dword [ebp + 0x104], esi
mov edx, dword [ecx + 0x10]
mov eax, esi
cmp eax, edx
jne 0x1000cb5d
jmp 0x1000ce7f
mov eax, dword [ebp + 0x24c]
mov edx, dword [ebp + 0x104]
cmp edx, dword [eax + 0xc]
jne 0x1000cda8
mov eax, dword [eax - 4]
cmp dword [eax + 4], ebx
je 0x1000cd2f
add eax, 8
jmp 0x1000cd31
xor eax, eax
mov dword [ebp + 0x24c], eax
mov eax, dword [ebp + 0x564]
cmp eax, ebx
je 0x1000cd56
mov eax, dword [eax - 4]
cmp dword [eax + 4], ebx
je 0x1000cd4e
add eax, 8
jmp 0x1000cd50
xor eax, eax
mov dword [ebp + 0x564], eax
mov eax, dword [ebp + 0x564]
cmp eax, ebx
je 0x1000cd76
mov eax, dword [eax]
push eax
lea edx, [ebp + 0x554]
push str._05i
push edx
call ecx
add esp, 0xc
jmp 0x1000cd87
lea eax, [ebp + 0x554]
push str.XXXXX
push eax
call ecx
add esp, 8
mov eax, dword [ebp + 0x24c]
cmp eax, ebx
jne 0x1000cda2
inc dword [ebp + 0x100]
mov dword [ebp + 0x104], ebx
jmp 0x1000ce7f
mov dword [ebp + 0x104], ebx
mov ecx, dword [ebp + 0x104]
cmp ecx, dword [eax + 0xc]
jge 0x1000ce70
mov ecx, dword [ebp + 0x104]
mov eax, dword [eax + 0x2c]
lea edx, [ecx + ecx*2]
shl edx, 4
mov ecx, dword [eax + edx]
push 5
push ecx
lea eax, [ebp + 0x554]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000ce50
mov eax, dword [ebp + 0x104]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x24c]
mov ecx, dword [eax + 0x2c]
shl edx, 4
mov edi, dword [edx + ecx]
or ecx, 0xffffffff
add edi, 5
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
lea ebx, [ebp + 0x450]
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, ebx
mov ecx, ebp
call sym.rlmfc.dll_private:_static_int___fastcall_R_File::xstricmp_char_const___char_const__
cmp eax, 1
je 0x1000cea0
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10031804
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov esi, dword [ebp + 0x104]
mov eax, dword [ebp + 0x24c]
inc esi
mov dword [ebp + 0x104], esi
mov edx, dword [eax + 0xc]
mov ecx, esi
cmp ecx, edx
jl 0x1000cdb7
mov ecx, dword [ebp + 0x24c]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 0x104], edx
mov eax, dword [ebp + 0x100]
cmp eax, 3
jbe 0x1000c947
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
lea eax, [ebp + 0x134]
pop ebp
pop ebx
ret
mov eax, dword [ebp + 0x104]
pop edi
inc eax
mov dword [ebp + 0x104], eax
pop esi
lea eax, [ebp + 0x450]
pop ebp
pop ebx
ret