Function at 0x403d90
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 0x404051
test eax, eax
je 0x404051
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x403dd1
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 0x403e20
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.00401f50
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 0x403e98
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 0x403e76
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x1e
jl 0x403e98
mov ebx, 1
jmp 0x403e9a
xor ebx, ebx
push 3
lea ecx, [ebp - 0x47c]
call fcn.004058a0
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x403ecd
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x403ecd
nop
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x403ec0
lea ecx, [ebp - 0x47c]
call fcn.00405950
mov eax, dword [ebp - 0x210]
cmp eax, 7
jbe 0x40400a
mov esi, dword [ebp - 0x224]
lea edi, [eax + 1]
test esi, esi
jne 0x403f3b
test edi, edi
je 0x403f3b
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x451648
push esi
push 0x3cf
push 0x451650
push 2
call fcn.00411610
add esp, 0x18
cmp eax, 1
jne 0x403f1d
int3
push 0
push 0x3cf
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.39.33519includexmemory
push 0x451784
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.00410930
add esp, 0x14
add edi, edi
cmp edi, 0x1000
jb 0x404000
mov eax, dword [esi - 4]
add edi, 0x27
cmp dword [esi - 8], 0xfafafafa
mov dword [ebp - 0x47c], eax
je 0x403fa8
push str.invalid_argument
push 0x451648
push 0
push 0xa7
push 0x451650
push 2
call fcn.00411610
add esp, 0x18
cmp eax, 1
jne 0x403f84
int3
push 0
push 0xa7
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.39.33519includexmemory
push 0x451784
push str._invalid_argument_
call fcn.00410930
mov eax, dword [ebp - 0x47c]
add esp, 0x14
sub esi, eax
cmp esi, 8
jb 0x403fb4
cmp esi, 0x27
jbe 0x403ffe
push str.invalid_argument
push 0x451648
push 0
push 0xb1
push 0x451650
push 2
call fcn.00411610
add esp, 0x18
cmp eax, 1
jne 0x403fda
int3
push 0
push 0xb1
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.39.33519includexmemory
push 0x451784
push str._invalid_argument_
call fcn.00410930
mov eax, dword [ebp - 0x47c]
add esp, 0x14
mov esi, eax
push edi
push esi
call fcn.0040a720
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.0040a720
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af10
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040af10
mov esp, ebp
pop ebp
ret