Function at 0x417740
Capabilities:
Create directory
Get common file path
Get geographical location
Get hostname
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ec
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x8e8], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp dword [0x812c7c], 0xc31
jne 0x417795
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
push 0
call edi
push 0
push 0
push 0
call ebx
cmp esi, 0x176ee4
jg 0x4177b4
inc esi
cmp esi, 0x3661b338
jl 0x41776b
jmp 0x4177c7
cmp dword [0x812c7c], 0xa
jne 0x4177c7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x4177e3
mov eax, dword [0x420bcc]
mov dword [0x812c80], eax
cmp dword [0x812c7c], 0x3c
jne 0x4177ef
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x4177d1
cmp dword [0x812c7c], 0x7c
jne 0x417871
push ebx
call dword [sym.imp.ole32.dll_CreateDataAdviseHolder]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push str.vehexu
call dword [sym.imp.KERNEL32.dll_AddAtomA]
lea edx, [esp + 0x4f0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
cmp dword [0x812c7c], 0x2d
jne 0x417859
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0x41da1f
push 0x421c80
call fcn.0040123e
push ebx
call fcn.004010f9
add esp, 0xc
cmp dword [0x812c7c], 0x110a
jne 0x4178cd
mov dword [0x8128f0], ebx
mov dword [0x8128f4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push ebx
push ebx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
push ebx
call fcn.0040100f
push ebx
call fcn.0040104f
add esp, 0xc
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
push ebx
call fcn.00401227
add esp, 0x14
call fcn.00416cb0
xor esi, esi
cmp dword [0x812c7c], ebx
jbe 0x417930
mov edi, dword [sym.imp.KERNEL32.dll_ReplaceFileW]
jmp 0x4178f0
mov ecx, dword [0x812c80]
mov dword [esp + 0xc], ecx
mov eax, 0xa231
add dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov al, byte [edx + esi]
mov ecx, dword [0x81080c]
mov byte [ecx + esi], al
cmp dword [0x812c7c], 0x5ab
jne 0x417927
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x812c7c]
jb 0x4178f0
call fcn.004175a0
call fcn.00416ce0
call fcn.004176d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessTimes]
xor esi, esi
cmp dword [0x812c7c], 0x41
jne 0x417957
push ebx
push ebx
push ebx
push ebx
push ebx
call edi
cmp esi, 0xbd9cb
jne 0x417964
call fcn.00416cd0
inc esi
cmp esi, 0x15a63d
jl 0x417947
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetClassLongA]
xor esi, esi
lea esp, [esp]
push 0
push 0
call edi
cmp esi, 0x1abd1
jle 0x417996
cmp ebx, 0xf5bed7
jne 0x41799f
inc esi
cmp esi, 0x1ebf3812
jl 0x417980
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov edi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [esp + 0x10], 0x1519a5
mov ebx, 0x8e46a6f0
jmp 0x4179c0
cmp dword [0x812c7c], 0x3dc
mov dword [0x8128ec], ebx
jne 0x4179eb
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push edx
push edx
mov dword [esp + 0x20], edx
call esi
push 0
push 0
push 0
call edi
dec dword [esp + 0x10]
jne 0x4179c0
mov ecx, dword [esp + 0x8f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret