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

Disassembly:
push 0xffffffffffffffff
push 0x4f7618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x52bd18]
push esi
mov esi, dword [esp + 0x288]
mov dword [esp + 0x274], eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x479af6
push ebx
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x284], 0
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x284], 1
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push 1
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x28c], 2
call fcn.00478300
mov eax, dword [eax]
push 0x4ffc6c
push eax
call fcn.004d00ea
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4795b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x479603
push 0x4ffc6c
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0041b770
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 3
call fcn.0041b4b0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x284], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47960d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x47960d
push esi
lea ecx, [esp + 0x1c]
call fcn.0041b4b0
mov ebx, dword [esp + 0x18]
add ebx, 0xfffffff0
push ebp
push ebx
mov dword [esp + 0x18], ebx
call fcn.0041afd0
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x290], 4
call fcn.00478ca0
mov ebp, dword [esp + 0x28]
add esp, 8
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4796e8
lea eax, [ebp - 0x10]
mov byte [esp + 0x288], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479670
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x288], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479696
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x288], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4796bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x288], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4796de
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, 1
jmp 0x479af4
push edi
push 0x4ffc64
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0041b770
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47972e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, 0xffffffff
jne 0x4797cd
lea eax, [ebp - 0x10]
mov byte [esp + 0x28c], 2
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479758
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47977e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4797a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x28c], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4797c6
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
xor eax, eax
jmp 0x479af3
mov bl, 5
nop
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.0041ba10
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x298], bl
call fcn.0041b770
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 6
call fcn.0041b4b0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x28c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479833
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x479898
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0041b770
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x290], 7
call fcn.0041b4b0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x28c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4798a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4798a1
lea ecx, [esp + 0x10]
call fcn.0041b040
mov eax, dword [esp + 0x1c]
push 0x4ffc60
push eax
call fcn.004d00ea
add esp, 8
test eax, eax
je 0x47993e
mov ecx, dword [esp + 0x1c]
push 0x4ffc58
push ecx
call fcn.004d00ea
add esp, 8
test eax, eax
je 0x47993e
test byte [esp + 0x30], 0x10
lea edx, [esp + 0x14]
je 0x4798ff
push edx
call fcn.004794e0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add esp, 4
test ecx, ecx
je 0x47993e
lea ecx, [esp + 0x10]
push ecx
call fcn.004794e0
add esp, 4
jmp 0x47993e
push 0x80
push edx
call fcn.00479260
lea eax, [esp + 0x1c]
push eax
call fcn.00479140
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add esp, 0xc
test eax, eax
je 0x47993e
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00479260
lea eax, [esp + 0x18]
push eax
call fcn.00479140
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47997d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4797d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4797d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edi, 0xffffffff
mov byte [esp + 0x28c], 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4799ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.00478f00
add esp, 4
test eax, eax
jne 0x479a64
push 0x80
push esi
call fcn.00479260
push esi
call fcn.00478f00
mov esi, eax
lea eax, [ebp - 0x10]
add esp, 0xc
mov byte [esp + 0x28c], 2
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4799f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479a19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x479a5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
jmp 0x479af3
lea eax, [ebp - 0x10]
mov byte [esp + 0x28c], 2
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479a85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479acf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x479aee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x274]
pop esi
call fcn.004ce183
add esp, 0x280
ret