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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e974
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.0046dc20
lea ecx, [ebp - 0x284]
push ecx
mov dword [ebp - 4], 0
call fcn.0046eb60
mov edx, dword [ebp - 0x284]
add esp, 0xc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e4e0
push 0x592378
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x290]
push edx
call fcn.004221d0
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x28c], esi
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47e341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x47e4e0
cmp esi, 0xffffffff
je 0x47e4e0
mov byte [ebp - 0x27d], 0
lea esp, [esp]
test byte [ebp - 0x27c], 0x10
je 0x47e3a7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x592320
lea ecx, [ebp - 0x250]
push ecx
call ebx
test eax, eax
je 0x47e4a9
push 0x59185c
lea edx, [ebp - 0x250]
push edx
call ebx
test eax, eax
je 0x47e4a9
mov byte [ebp - 0x27d], 1
jmp 0x47e4a9
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x288]
call fcn.00422540
mov edx, dword [ebp - 0x288]
xor ecx, ecx
mov eax, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47e3e0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00437a20
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 3
call fcn.00476a40
add esp, 4
cmp dword [ebp - 0x18], 8
mov bl, al
mov byte [ebp - 4], 2
jb 0x47e421
mov eax, dword [ebp - 0x2c]
push eax
call int.0042bfd0
add esp, 4
test bl, bl
je 0x47e476
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x284]
push edx
lea eax, [ebp - 0x294]
push eax
call fcn.00423670
push 1
push eax
mov byte [ebp - 4], 4
call fcn.00443290
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e47d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47e47d
mov byte [ebp - 0x27d], 1
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e4a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x28c]
lea ecx, [ebp - 0x27c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47e360
cmp byte [ebp - 0x27d], al
jne 0x47e4d9
mov edx, dword [ebp - 0x284]
push 1
push eax
push edx
call fcn.00470930
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x284]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e509
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret 4