Function at 0x4c4fc0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565f09
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5c3678]
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, dword [ebp + 0xc]
mov dword [ebp - 0x274], eax
mov dword [ebp - 4], 2
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
mov byte [ebp - 0x261], 1
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
push 0x24c
lea ecx, [ebp - 0x25c]
push 0
mov byte [ebp - 4], 3
push ecx
mov dword [ebp - 0x260], 0
call fcn.00544310
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c5057
mov byte [ebp - 0x261], 1
mov eax, dword [ebp + 8]
push eax
push str._s__________.log
lea edi, [ebp - 0x268]
call fcn.004235e0
mov edx, dword [ebp - 0x268]
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x270], esi
cmp esi, 0xffffffff
jne 0x4c5096
mov byte [ebp - 0x261], 1
mov ebx, 4
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c50c8
test dx, dx
je 0x4c50c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c50c8
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4c50a4
xor eax, eax
jmp 0x4c50cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x4c51bd
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x234]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c5104
test dx, dx
je 0x4c5100
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c5104
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x4c50e0
xor eax, eax
jmp 0x4c5109
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x4c51bd
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x26c]
push ecx
mov esi, 0x58a630
call fcn.00421fe0
push eax
lea edx, [ebp - 0x278]
push edx
lea esi, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00421fe0
add esp, 0x10
lea edi, [ebp - 0x268]
mov byte [ebp - 4], 5
call fcn.00423c70
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5173
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x268]
call fcn.004c55e0
mov esi, dword [ebp - 0x270]
add esp, 4
test eax, eax
setne byte [ebp - 0x261]
lea edx, [ebp - 0x260]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c509b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx esi, byte [ebp - 0x261]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c522a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c524d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5273
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.0053c15d
mov esp, ebp
pop ebp
ret