Function at 0x403d50
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x46a040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x404011
test eax, eax
je 0x404011
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403d91
mov eax, dword [0x451c34]
xorps xmm0, xmm0
mov dword [ecx], eax
mov eax, dword [0x451c38]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x228], 0
lea edx, [ecx + 2]
movups xmmword [ebp - 0x224], xmm0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403de0
push ebx
push esi
sub ecx, edx
lea eax, [ebp - 0x20c]
push edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00401f40
cmp dword [ebp - 0x210], 7
lea ecx, [ebp - 0x478]
lea eax, [ebp - 0x224]
cmova eax, dword [ebp - 0x224]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403e58
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor esi, esi
lea eax, [ebp - 0x478]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x403e36
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x1e
jl 0x403e58
mov ebx, 1
jmp 0x403e5a
xor ebx, ebx
push 3
lea ecx, [ebp - 0x47c]
call fcn.00405880
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x403e8d
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x403e8d
nop
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x403e80
lea ecx, [ebp - 0x47c]
call fcn.00405930
mov eax, dword [ebp - 0x210]
cmp eax, 7
jbe 0x403fca
mov esi, dword [ebp - 0x224]
lea edi, [eax + 1]
test esi, esi
jne 0x403efb
test edi, edi
je 0x403efb
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x451648
push esi
push 0x3b3
push 0x451650
push 2
call fcn.00411860
add esp, 0x18
cmp eax, 1
jne 0x403edd
int3
push 0
push 0x3b3
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120includexmemory
push 0x451784
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.00410b80
add esp, 0x14
add edi, edi
cmp edi, 0x1000
jb 0x403fc0
mov eax, dword [esi - 4]
add edi, 0x27
cmp dword [esi - 8], 0xfafafafa
mov dword [ebp - 0x47c], eax
je 0x403f68
push str.invalid_argument
push 0x451648
push 0
push 0xb2
push 0x451650
push 2
call fcn.00411860
add esp, 0x18
cmp eax, 1
jne 0x403f44
int3
push 0
push 0xb2
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120includexmemory
push 0x451784
push str._invalid_argument_
call fcn.00410b80
mov eax, dword [ebp - 0x47c]
add esp, 0x14
sub esi, eax
cmp esi, 8
jb 0x403f74
cmp esi, 0x27
jbe 0x403fbe
push str.invalid_argument
push 0x451648
push 0
push 0xbc
push 0x451650
push 2
call fcn.00411860
add esp, 0x18
cmp eax, 1
jne 0x403f9a
int3
push 0
push 0xbc
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120includexmemory
push 0x451784
push str._invalid_argument_
call fcn.00410b80
mov eax, dword [ebp - 0x47c]
add esp, 0x14
mov esi, eax
push edi
push esi
call fcn.0040a780
add esp, 8
mov ecx, dword [ebp - 0x228]
xor eax, eax
push 8
push ecx
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
mov dword [ebp - 0x228], eax
call fcn.0040a780
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af70
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040af70
mov esp, ebp
pop ebp
ret