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

Disassembly:
push 0xffffffffffffffff
push 0x5a4dd1
mov eax, dword fs:[0]
push eax
sub esp, 0x684
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x698]
mov dword fs:[0], eax
mov edi, dword [esp + 0x6ac]
mov esi, dword [esp + 0x6a8]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, edi
call fcn.00404460
xor ebx, ebx
mov dword [esp + 0x6a0], ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x482b00
cmp eax, 2
jl 0x482b00
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482b00
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
cmp eax, ebx
je 0x482929
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x48298d
cmp ecx, eax
jg 0x48298d
movzx eax, word [edi + ecx*2]
cmp ax, 0x5c
jne 0x482929
mov edi, dword [edi - 0xc]
lea eax, [edi - 1]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
call fcn.00403560
lea edi, [esp + 0x18]
mov byte [esp + 0x6a0], 1
call fcn.004035d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a0], bl
call fcn.00404510
mov edi, dword [esp + 0x18]
push 0x208
lea edx, [esp + 0x48a]
push ebx
push edx
mov word [esp + 0x490], bx
call fcn.00580260
add esp, 0xc
push edi
push str._s
lea eax, [esp + 0x48c]
push 0x104
push eax
call fcn.005788af
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x488]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x482ac7
jmp 0x4829a2
push 0x80070057
call fcn.00404550
jmp 0x4829a0
xor ebx, ebx
test byte [esp + 0x24], 0x10
je 0x482a37
lea ecx, [esp + 0x50]
push 0x5c06c0
push ecx
call fcn.00579288
add esp, 8
test eax, eax
je 0x482ab3
lea edx, [esp + 0x50]
push 0x5bf10c
push edx
call fcn.00579288
add esp, 8
test eax, eax
je 0x482ab3
push 0x208
lea eax, [esp + 0x27a]
push ebx
push eax
mov word [esp + 0x280], bx
call fcn.00580260
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x280]
push 0x103
push eax
call fcn.005788af
add esp, 0x14
lea ecx, [esp + 0x274]
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.00482840
jmp 0x482ab3
push 0x208
call fcn.0057740a
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x50]
push edx
push eax
push str._s_s
push 0x103
push edi
call fcn.005788af
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00404460
mov ebx, eax
mov byte [esp + 0x6a0], 2
call fcn.00428c20
mov byte [esp + 0x6a0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x482aa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x482ab3
push edi
call fcn.0057832c
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4829a0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x6a0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x482af9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x482b2d
mov dword [esp + 0x6a0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482b2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.005787fd
add esp, 0x690
ret 8