Function at 0x401cf0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xd58
push ebx
push ebp
mov ebx, ecx
push esi
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x360]
push eax
push ecx
mov esi, 8
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
test eax, eax
jne 0x401d2d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd58
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x464]
lea edx, [esp + 0x464]
rep stosd dword es:[edi], eax
push 0x104
push edx
mov ecx, ebx
call fcn.00401c60
lea eax, [esp + 0x360]
push 0x104
lea ecx, [esp + 0x260]
push eax
push ecx
call fcn.00409255
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
lea edx, [esp + 0x25c]
push 0x41d8f8
push edx
call ebp
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x25c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x401dc3
mov ecx, dword [ebx + 0x61c]
test ecx, ecx
je 0x401db3
call fcn.004039d0
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xd58
ret
lea edx, [esp + 0x148]
push 0x41d8f4
push edx
call fcn.00409361
add esp, 8
test eax, eax
je 0x401fe0
lea eax, [esp + 0x148]
push 0x41d8f0
push eax
call fcn.00409361
add esp, 8
test eax, eax
je 0x401fe0
cmp dword [esp + 0x11c], 0x10
jne 0x401fe0
lea ecx, [esp + 0x360]
push 0x104
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00409255
add esp, 0xc
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
call ebp
lea edx, [ebx + 0x518]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x148]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x464]
push ecx
push edx
call ebp
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x401e97
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
jmp 0x401e9d
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [str.Intel]
lea eax, [esp + 0x18]
push edx
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
jne 0x401ebe
lea edx, [esp + 0x18]
push eax
push edx
call edi
mov eax, dword [str.Wireless]
lea ecx, [esp + 0x18]
push eax
push ecx
call ebp
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jne 0x401ede
push eax
lea eax, [esp + 0x1c]
push eax
call edi
mov ecx, dword [str.Settings]
lea edx, [esp + 0x18]
push ecx
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x401f18
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or al, 2
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [str.Settings.ini]
lea edx, [esp + 0x18]
push ecx
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
mov eax, dword [ebx + 0x61c]
je 0x401f6a
test eax, eax
je 0x401fac
lea ecx, [esp + 0x18]
lea edx, [esp + 0x568]
push ecx
push str._tUsing_the_EXISTING_individual_setting_file__s
push edx
call fcn.00409203
mov ecx, dword [ebx + 0x61c]
add esp, 0xc
lea eax, [esp + 0x568]
push eax
call fcn.004037f0
jmp 0x401fac
test eax, eax
je 0x401f9b
lea ecx, [esp + 0x18]
lea edx, [esp + 0x568]
push ecx
push str._tUsing_the_MASTER_TEMPLATE_individual_setting_file__s
push edx
call fcn.00409203
mov ecx, dword [ebx + 0x61c]
add esp, 0xc
lea eax, [esp + 0x568]
push eax
call fcn.004037f0
lea ecx, [esp + 0x18]
push 0
lea edx, [ebx + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401860
mov edi, dword [esp + 0x10]
mov esi, eax
lea ecx, [esp + 0x11c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401dc3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd58
ret