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

Disassembly:
sub esp, 0xc8c
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0xc84], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc98]
push esi
mov esi, dword [esp + 0xca4]
push edi
mov edi, dword [esp + 0xca4]
xor eax, eax
push 0x206
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0xa92]
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0
mov word [esp + 0xa94], ax
call fcn.0052e300
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.0052e300
add esp, 0xc
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x48a]
push edx
mov word [esp + 0x48c], cx
call fcn.0052e300
lea ecx, [esp + 0x48c]
add esp, 0xc
mov eax, edi
sub ecx, edi
lea esp, [esp]
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x523260
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea eax, [esp + 0x684]
push str._s.lnk
push eax
call ebx
add esp, 0xc
push ebp
lea ecx, [esp + 0xa8c]
push 0x5d2244
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xa8c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x5232c0
xor al, al
jmp 0x5235b2
cmp word [esp + 0x54], 0x2e
je 0x5234b6
mov ax, word [esp + 0x56]
test ax, ax
je 0x5234b6
cmp ax, 0x2e
jne 0x5232ec
cmp word [esp + 0x58], 0
je 0x5234b6
test byte [esp + 0x28], 0x10
je 0x5233be
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x88a]
push edx
mov word [esp + 0x88c], cx
call fcn.0052e300
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push ebp
lea ecx, [esp + 0x888]
push str._s_s_
push ecx
call ebx
add esp, 0x10
cmp byte [esp + 0xcac], 0
jne 0x52338f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x282]
push eax
mov word [esp + 0x284], dx
call fcn.0052e300
add esp, 0xc
lea ecx, [esp + 0x680]
push ecx
lea edx, [esp + 0x58]
push edx
push ebp
lea eax, [esp + 0x284]
push str._s_s_s
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5235cd
mov edx, dword [esp + 0xcac]
mov ecx, dword [esp + 0x24]
push edx
push esi
push edi
lea eax, [esp + 0x88c]
push eax
call fcn.005231b0
movzx eax, al
mov dword [esp + 0x14], eax
test eax, eax
jne 0x52359f
jmp 0x5234b6
cmp byte [esp + 0xcac], 0
je 0x5234d7
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5233d3
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x480]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5233f0
sub eax, esi
sar eax, 1
mov esi, eax
test edx, edx
jle 0x5234b6
test esi, esi
jle 0x5234b6
cmp edx, esi
jl 0x5234b6
lea ecx, [esp + 0x480]
push ecx
call fcn.00529fdf
lea edx, [esp + 0x58]
add esp, 4
push edx
mov edi, eax
call fcn.00529fdf
add esp, 4
push edi
push eax
call fcn.00527ed8
add esp, 8
test eax, eax
je 0x5234b2
xor eax, eax
test esi, esi
jle 0x523464
lea esp, [esp]
mov cx, word [esp + eax*2 + 0x54]
cmp cx, word [esp + eax*2 + 0x480]
jne 0x5234b2
inc eax
cmp eax, esi
jl 0x523450
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x282]
push eax
mov word [esp + 0x284], dx
call fcn.0052e300
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push ebp
lea edx, [esp + 0x280]
push 0x5ab79c
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5235f3
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x52359f
mov esi, dword [esp + 0x18]
jmp 0x5232c0
lea ecx, [esp + 0x680]
push ecx
call fcn.00529fdf
lea edx, [esp + 0x58]
add esp, 4
push edx
mov esi, eax
call fcn.00529fdf
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x52351c
test cx, cx
je 0x523518
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x52351c
add eax, 4
add esi, 4
test cx, cx
jne 0x5234f6
xor eax, eax
jmp 0x523521
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5234b6
push 0x206
push eax
lea ecx, [esp + 0x282]
push ecx
mov word [esp + 0x284], ax
call fcn.0052e300
add esp, 0xc
lea edx, [esp + 0x54]
push edx
push ebp
lea eax, [esp + 0x280]
push 0x5d3c64
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x278]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5234b6
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x278]
mov ecx, eax
mov dword [esp + 0x14], 1
sub edx, ecx
jmp 0x523590
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x523590
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
setne al
mov ecx, dword [esp + 0xc94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005273c3
add esp, 0xc8c
ret 0x10
lea eax, [esp + 0x278]
mov edx, esi
mov ecx, eax
mov dword [esp + 0x14], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x5235e2
jmp 0x52359f
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x278]
mov ecx, eax
mov dword [esp + 0x14], 1
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x523610
jmp 0x52359f