Function at 0x10011420
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.0x10011435.3
jmp dword [eax*4 + 0x100119b4]
mov eax, dword [ebp + 0x104]
test eax, eax
jne 0x10011468
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]
jmp 0x10011484
mov eax, dword [ebp + 0x248]
lea edx, [ebp + 0x108]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10011525
lea edi, [ebp + 0x134]
mov esi, 0x1003d700
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x100114b9
test cl, cl
je 0x100114b5
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x100114b9
add eax, 2
add esi, 2
test cl, cl
jne 0x10011491
xor eax, eax
jmp 0x100114be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je case.0x10011435.0
mov esi, 0x1003d9f4
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x100114f5
test cl, cl
je 0x100114f1
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x100114f5
add eax, 2
add esi, 2
test cl, cl
jne 0x100114cd
xor eax, eax
jmp 0x100114fa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je case.0x10011435.0
cmp dword [ebp + 0x248], 0xffffffff
je case.0x10011435.0
mov edx, edi
mov ecx, ebp
call sym.rlmfc.dll_private:_static_int___fastcall_R_File::xstricmp_char_const___char_const__
test eax, eax
jne 0x10011991
jmp case.0x10011435.0
mov edx, dword [ebp + 0x100]
mov eax, dword [ebp + 0x248]
inc edx
push eax
mov dword [ebp + 0x100], edx
mov dword [ebp + 0x104], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp + 0x248], 0
jmp 0x1001197b
mov eax, dword [ebp + 0x24c]
xor ebx, ebx
cmp eax, ebx
jne 0x10011573
mov dword [ebp + 0x100], 3
jmp 0x1001197b
mov ecx, dword [ebp + 0x104]
cmp ecx, dword [eax + 0x10]
jne 0x1001165c
cmp dword [ebp + 0x550], 1
jne 0x100115bf
mov esi, dword [sym.rlmfc.dll_class_R_DLList_int___R_File::m_findDirIDList]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 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
mov ecx, dword [esi + 0x14]
inc ecx
mov dword [esi + 0x18], 0x7fffffff
mov dword [esi + 0x14], ecx
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 0x24c]
mov eax, dword [eax - 4]
cmp dword [eax + 4], ebx
je 0x100115d2
add eax, 8
jmp 0x100115d4
xor eax, eax
cmp eax, ebx
mov dword [ebp + 0x24c], eax
mov dword [ebp + 0x550], 1
jne 0x10011656
mov ecx, dword [sym.rlmfc.dll_class_R_DLList_struct_R_File::R_RASArchive___R_File::RASArchiveList]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], ebx
je 0x100115fb
add eax, 8
jmp 0x100115fd
xor eax, eax
mov edx, dword [ebp + 0x100]
inc edx
mov dword [ebp + 0x24c], eax
mov dword [ebp + 0x100], edx
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 0x10011629
add eax, 8
jmp 0x1001162b
xor eax, eax
cmp eax, ebx
mov dword [ebp + 0x564], eax
je 0x10011564
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x554]
push str._05i
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x1001197b
mov dword [ebp + 0x104], ebx
mov ecx, dword [ebp + 0x24c]
mov edx, dword [ebp + 0x104]
cmp edx, dword [ecx + 0x10]
je 0x1001197b
cmp dword [ebp + 0x550], 1
jne 0x100116ee
mov ecx, dword [ecx + 0x34]
lea eax, [ebp + 0x250]
push eax
mov eax, dword [ebp + 0x104]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100116ee
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 + 0x34]
lea ecx, [ecx + ecx*2]
mov ecx, dword [edx + ecx*8 + 0x14]
mov dword [eax], ecx
mov dword [ebp + 0x550], 0
mov edx, dword [ebp + 0x24c]
mov eax, dword [ebp + 0x104]
mov ecx, dword [edx + 0x34]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8]
lea edi, [ebp + 0x250]
push edi
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x100117da
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push 0x1003d640
push ecx
call ebx
add esp, 8
test eax, eax
je 0x100117da
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
ja 0x100117da
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 0x100117a6
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 0x1001199c
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10051dac
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
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 0x10011671
jmp 0x1001197b
mov eax, dword [ebp + 0x24c]
mov ecx, dword [ebp + 0x104]
cmp ecx, dword [eax + 0xc]
jne 0x100118a6
mov eax, dword [eax - 4]
mov ecx, dword [eax + 4]
xor esi, esi
cmp ecx, esi
je 0x10011825
add eax, 8
jmp 0x10011827
xor eax, eax
mov dword [ebp + 0x24c], eax
mov eax, dword [ebp + 0x564]
cmp eax, esi
je 0x1001184c
mov eax, dword [eax - 4]
cmp dword [eax + 4], esi
je 0x10011844
add eax, 8
jmp 0x10011846
xor eax, eax
mov dword [ebp + 0x564], eax
mov eax, dword [ebp + 0x564]
cmp eax, esi
je 0x10011870
mov edx, dword [eax]
push edx
lea eax, [ebp + 0x554]
push str._05i
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x10011885
lea ecx, [ebp + 0x554]
push str.XXXXX
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov eax, dword [ebp + 0x24c]
cmp eax, esi
jne 0x100118a0
inc dword [ebp + 0x100]
mov dword [ebp + 0x104], esi
jmp 0x1001197b
mov dword [ebp + 0x104], esi
mov edx, dword [ebp + 0x104]
cmp edx, dword [eax + 0xc]
jge 0x1001196c
mov ecx, dword [ebp + 0x104]
mov edx, dword [eax + 0x30]
lea ecx, [ecx + ecx*2]
shl ecx, 4
mov eax, dword [edx + ecx]
push 5
push eax
lea eax, [ebp + 0x554]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1001194c
mov eax, dword [ebp + 0x104]
mov ecx, dword [ebp + 0x24c]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x30]
or ecx, 0xffffffff
shl edx, 4
mov edi, dword [eax + edx]
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 0x1001199c
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10051dac
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
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 0x100118b5
mov ecx, dword [ebp + 0x24c]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 0x104], edx
mov eax, dword [ebp + 0x100]
cmp eax, 3
jbe switch.0x10011435
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