Function at 0x40cf60
Capabilities:
Get common file path
Get disk information
Get geographical location
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40d451
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x186c
call fcn.0040ad20
mov eax, dword [0x815030]
xor eax, esp
mov dword [esp + 0x1868], eax
push ebx
push esi
push edi
mov eax, dword [0x815030]
xor eax, esp
push eax
lea eax, [esp + 0x1880]
mov dword fs:[0], eax
mov eax, dword [0x2ed02d4]
cmp eax, 0x7c
jne 0x40d01b
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x880]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [0x2ed02d4], 0x2d
jne 0x40d004
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x813b44
push 0x817978
call fcn.0040111b
mov eax, dword [0x2ed02d4]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor ebx, ebx
lea esp, [esp]
cmp eax, 0x8cf
jne 0x40d071
push 0
push str.zokametixitadumemigobajimij_sisananopurikaherorikedujedise_folaseyupizozaduburepifebopijase_xekeborayihocevoceduf
lea eax, [esp + 0x7c]
push eax
call esi
push 0
lea ecx, [esp + 0x878]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
lea edx, [esp + 0x108c]
push edx
push 0
call edi
mov eax, dword [0x2ed02d4]
cmp ebx, 0x162
jne 0x40d088
mov eax, dword [0x816e74]
add eax, 0xa231
mov dword [0x2ed02d4], eax
cmp eax, 0x141
jne 0x40d0a3
mov dword [0x817a00], 0xec58acac
mov dword [0x817a04], 0xffffffff
inc ebx
cmp ebx, 0x129916c
jl 0x40d030
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x40d0c4
mov ecx, dword [0x816058]
mov dword [0x2ed02d8], ecx
cmp eax, 0x3c
jne 0x40d0d5
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
mov eax, dword [0x2ed02d4]
inc esi
cmp esi, 0x5f6c74
jl 0x40d0b0
cmp eax, 0x110a
jne 0x40d295
mov edx, dword [esp + 0x44]
push edx
push ebx
mov dword [0x2ed01a0], ebx
mov dword [0x2ed01a4], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push ebx
push str.bolehibahunucemiruxuwajalayizof
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.paxajukojuraj
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
push ebx
call fcn.004012a9
push ebx
push ebx
call fcn.004012a9
push ebx
call fcn.0040ca14
add esp, 0x14
push 4
call fcn.00401403
add esp, 4
cmp eax, ebx
je 0x40d15b
lea ecx, [esp + 0x14]
mov dword [eax], ecx
jmp 0x40d15d
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 4
mov dword [esp + 0x188c], 1
call fcn.00401403
add esp, 4
cmp eax, ebx
je 0x40d18e
lea edx, [esp + 0x2c]
mov dword [eax], edx
jmp 0x40d190
xor eax, eax
mov dword [esp + 0x2c], eax
push ebx
push ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004012a9
push 0x813c5c
push 0x817978
call fcn.0040136f
mov eax, dword [esp + 0x48]
add esp, 0x10
cmp eax, ebx
je 0x40d205
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x40d1fc
lea esi, [eax + 0x18]
lea esp, [esp]
cmp dword [esi], 0x10
jb 0x40d1e1
mov eax, dword [esi - 0x14]
push eax
call fcn.0040138c
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x40d1d0
mov eax, dword [esp + 0x38]
push eax
call fcn.0040138c
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.0040138c
mov dword [esp + 0x188c], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
je 0x40d277
mov edi, dword [esp + 0x24]
cmp eax, edi
je 0x40d26e
lea esi, [eax + 0x18]
lea esp, [esp]
cmp dword [esi], 8
jb 0x40d251
mov edx, dword [esi - 0x14]
push edx
call fcn.0040138c
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], ax
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40d240
mov eax, dword [esp + 0x20]
push eax
call fcn.0040138c
add esp, 4
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0040138c
mov eax, dword [0x2ed02d4]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [0x2ecfff4], eax
cmp dword [0x2ed02d4], ebx
jbe 0x40d2ea
mov edx, 0x19b0
mov eax, dword [0x2ed02d8]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + ecx]
mov esi, dword [0x2ecfff4]
mov byte [esi + ecx], al
mov eax, dword [0x2ed02d4]
cmp eax, 0x5ab
jne 0x40d2e5
mov dword [0x2ecfff8], edx
inc ecx
cmp ecx, eax
jb 0x40d2b1
push 0x813c60
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.0040cb70
call fcn.0040cb50
call fcn.0040cea0
mov ecx, dword [0x2ecfff4]
xor eax, eax
lea esp, [esp]
cmp eax, 0xd606b
jne 0x40d31d
add ecx, 0
inc eax
cmp eax, 0x24e87d
jl 0x40d310
mov edi, dword [esp + 0x54]
mov dword [0x2ecfff4], ecx
xor esi, esi
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
cmp esi, 0x408e
jle 0x40d34c
cmp edi, 0xf5bed7
jne 0x40d355
inc esi
cmp esi, 0x687ed2
jl 0x40d331
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x10], 0x1e4165
mov ebx, 0x8e46a6f0
mov edi, edi
cmp dword [0x2ed02d4], 0xcc1
jne 0x40d380
push 0
call esi
cmp dword [0x2ed02d4], 0x7c4
mov dword [0x2ecfffc], ebx
jne 0x40d394
call edi
sub dword [esp + 0x10], 1
jne 0x40d370
mov ecx, dword [esp + 0x1880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1868]
xor ecx, esp
call fcn.0040110c
mov esp, ebp
pop ebp
ret