Function at 0x4c4ea9
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x520588
call fcn.004edf30
sub esp, 0x230
push ebx
push esi
mov ebx, ecx
call fcn.004c4dfb
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.004c4a14
mov eax, dword [eax]
lea ecx, [ebp - 0x1bc]
push 0xa
xor esi, esi
push ecx
push eax
mov dword [ebp - 4], esi
call fcn.004c48e4
pop ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 1
sub eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x3c], esi
je 0x4c4f0c
push eax
push dword [ebp - 0x3c]
call fcn.004094c0
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1bc]
push eax
push 0x56f64c
lea eax, [ebp - 0x23c]
push str.LOG_s_sCHAT.LOG
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4c50f1
mov esi, 0x55a7a0
push edi
lea eax, [ebp - 0x150]
push esi
push eax
call sub.MSVCRT.dll_strcmp
mov edi, dword [sym.imp.MSVCRT.dll_sscanf]
pop ecx
test eax, eax
pop ecx
je 0x4c5015
lea eax, [ebp - 0x150]
push 0x55a79c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4c5015
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x150]
push str._d__d__d.log
push eax
call edi
add esp, 0x14
cmp eax, 3
jne 0x4c5015
push 0x110
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x14], eax
jne 0x4c4fda
push str.D:CQ2ClientRelease_11.17.103DRoleChatLog.cpp
push 0x108
push 0x55f220
call fcn.004e9e6f
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push eax
lea ecx, [ebx + 4]
call fcn.004c5d97
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4c50d9
lea eax, [ebp - 0x150]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4c5015
lea eax, [ebp - 0x150]
push 0x55a79c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4c5015
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x150]
push str._d__d__d.log
push eax
call edi
add esp, 0x14
cmp eax, 3
jne 0x4c5015
push 0x110
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x4c50a2
push str.D:CQ2ClientRelease_11.17.103DRoleChatLog.cpp
push 0x122
push 0x55f220
call fcn.004e9e6f
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0xc
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x10]
pop ecx
jmp 0x4c500c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x404
call fcn.004a2911
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret