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

Disassembly:
push 0xffffffffffffffff
push 0x4fd967
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
mov eax, dword [0x531d28]
mov dword [esp + 0x264], eax
mov eax, dword [esp + 0x278]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x47cfce
xor eax, eax
jmp 0x47d384
push esi
add eax, 0xfffffff0
push edi
push eax
call fcn.0041c460
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0xc], esi
push esi
mov dword [esp + 0x27c], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47d024
or edi, 0xffffffff
lea eax, [esi - 0x10]
mov dword [esp + 0x278], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x47d01a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x47d382
lea eax, [esp + 0xc]
push ebp
push eax
call fcn.0047b460
lea ecx, [esp + 0x14]
push ecx
call fcn.0047ac20
push 0x505b64
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0041cc60
mov eax, dword [eax]
add esp, 0x14
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47d080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebp, edi
jne 0x47d0ad
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x27c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x47d0a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x47d381
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov bl, 3
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041cfa0
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x28c], 1
call fcn.0041cc60
add esp, 0xc
mov byte [esp + 0x280], 2
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x258]
push eax
mov byte [esp + 0x284], bl
call esi
test eax, eax
je 0x47d165
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0041cc60
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x284], 4
call fcn.0041cad0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x280], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d16e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x47d16e
lea ecx, [esp + 0x10]
call fcn.0041c4d0
mov eax, dword [esp + 0x18]
push 0x505b60
push eax
call fcn.004d602a
add esp, 8
test eax, eax
je 0x47d20b
mov ecx, dword [esp + 0x18]
push 0x505b58
push ecx
call fcn.004d602a
add esp, 8
test eax, eax
je 0x47d20b
test byte [esp + 0x24], 0x10
lea edx, [esp + 0x1c]
je 0x47d1cc
push edx
call fcn.0047cf90
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add esp, 4
test ecx, ecx
je 0x47d20b
lea ecx, [esp + 0x10]
push ecx
call fcn.0047cf90
add esp, 4
jmp 0x47d20b
push 0x80
push edx
call fcn.0047b1e0
lea eax, [esp + 0x24]
push eax
call fcn.0047b0c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add esp, 0xc
test eax, eax
je 0x47d20b
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.0047b1e0
lea eax, [esp + 0x18]
push eax
call fcn.0047b0c0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47d293
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x280], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47d240
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x280], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x280], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d0b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x47d0b6
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x280], 2
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebx
jg 0x47d2c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x27c], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d2e5
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 + 0x27c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d30a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x284]
push esi
call fcn.0047ae80
add esp, 4
test eax, eax
jne 0x47d35a
push 0x80
push esi
call fcn.0047b1e0
push esi
call fcn.0047ae80
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x27c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x47d356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
jmp 0x47d381
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x27c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x47d37c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x264]
call fcn.004d40be
add esp, 0x274
ret