Function at 0x4c7e50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5b4
mov eax, dword [0x57a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xbc507c
push 0x64
push 0xbc50e0
mov dword [0xb904f4], 0
call fcn.0052d6d0
add esp, 0xc
push str.MonsterSetBase_
push 0x64
push 0xbc50e0
call fcn.00534636
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0xbc50e0
push 0x55c0f0
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c81ac
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax]
test byte [ebp - 0x460], 0x10
jne 0x4c7ff9
movsx eax, byte [ebp - 0x434]
push eax
call fcn.005310c0
add esp, 4
test eax, eax
je 0x4c7ff9
movsx eax, byte [ebp - 0x433]
push eax
call fcn.005310c0
add esp, 4
test eax, eax
je 0x4c7ff9
movsx eax, byte [ebp - 0x432]
push eax
call fcn.005310c0
add esp, 4
test eax, eax
je 0x4c7ff9
cmp byte [ebp - 0x431], 0x20
jne 0x4c7ff9
cmp byte [ebp - 0x430], 0x2d
jne 0x4c7ff9
cmp byte [ebp - 0x42f], 0x20
jne 0x4c7ff9
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x110]
push str.MonsterSetBase_s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
call fcn.00530c7f
add esp, 4
mov esi, eax
lea eax, [ebp - 0x5a4]
mov dword [ebp - 0x5a4], esi
mov ecx, 0x9f436c
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00405650
mov ecx, dword [ebp - 0x5a8]
mov eax, dword [0x9f436c]
cmp byte [ecx + 0xd], 0
jne 0x4c7fb9
cmp esi, dword [ecx + 0x10]
jge 0x4c7fbb
mov ecx, eax
cmp ecx, eax
je 0x4c7ff3
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.004c81d0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x460]
push eax
push edi
call ebx
test eax, eax
jne 0x4c7ee0
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.MonsterSetBaseEvent_
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
lea eax, [ebp - 0x320]
push 0xbc50e0
push 0x55c0f0
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x5a0]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c81bd
nop dword [eax + eax]
test byte [ebp - 0x5a0], 0x10
jne 0x4c8189
movsx eax, byte [ebp - 0x574]
push eax
call fcn.005310c0
add esp, 4
test eax, eax
je 0x4c8189
movsx eax, byte [ebp - 0x573]
push eax
call fcn.005310c0
add esp, 4
test eax, eax
je 0x4c8189
movsx eax, byte [ebp - 0x572]
push eax
call fcn.005310c0
add esp, 4
test eax, eax
je 0x4c8189
cmp byte [ebp - 0x571], 0x20
jne 0x4c8189
cmp byte [ebp - 0x570], 0x2d
jne 0x4c8189
cmp byte [ebp - 0x56f], 0x20
jne 0x4c8189
lea eax, [ebp - 0x574]
push eax
lea eax, [ebp - 0x110]
push str.MonsterSetBaseEvent_s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x574]
push eax
call fcn.00530c7f
add esp, 4
mov esi, eax
lea eax, [ebp - 0x5a4]
mov dword [ebp - 0x5a4], esi
mov ecx, 0x9f436c
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00405650
mov ecx, dword [ebp - 0x5a8]
mov eax, dword [0x9f436c]
cmp byte [ecx + 0xd], 0
jne 0x4c8149
cmp esi, dword [ecx + 0x10]
jge 0x4c814b
mov ecx, eax
cmp ecx, eax
je 0x4c8183
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.004c81d0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x5a0]
push eax
push edi
call ebx
test eax, eax
jne 0x4c8070
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00529f01
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push str.__s__Could_not_alloc_memory_for_MemScript
call fcn.00526250
lea eax, [ebp - 0x320]
push eax
push str.__s__Could_not_alloc_memory_for_MemScript
call fcn.00526250
int3