Function at 0x40cec0
Capabilities:
Get common file path
Get disk information
Get geographical location
Resolve function by parsing pe exports
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40d411
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x186c
call fcn.0040b250
mov eax, dword [0x455030]
xor eax, esp
mov dword [esp + 0x1868], eax
push ebx
push esi
push edi
mov eax, dword [0x455030]
xor eax, esp
push eax
lea eax, [esp + 0x1880]
mov dword fs:[0], eax
mov eax, dword [0x2b102d4]
cmp eax, 0x7c
jne 0x40cf8d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea eax, [esp + 0x874]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x2b102d4], 0x2d
jne 0x40cf6f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x453c56
push 0x457978
call fcn.0040111b
push 0
call fcn.004013a2
mov eax, dword [0x2b102d4]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor ebx, ebx
jmp 0x40cfa0
cmp eax, 0x8cf
jne 0x40cfe1
push 0
push str.zejububicimohuf_rozerifalayuci_vudiyosutawawiga_vugutitesari
lea ecx, [esp + 0x87c]
push ecx
call esi
push 0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x108c]
push eax
push 0
call edi
mov eax, dword [0x2b102d4]
cmp ebx, 0x162
jne 0x40cff8
mov eax, dword [0x456e74]
add eax, 0xa231
mov dword [0x2b102d4], eax
cmp eax, 0x141
jne 0x40d013
mov dword [0x457a00], 0xec58acac
mov dword [0x457a04], 0xffffffff
inc ebx
cmp ebx, 0x129916c
jl 0x40cfa0
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x40d034
mov ecx, dword [0x456058]
mov dword [0x2b102d8], ecx
cmp eax, 0x3c
jne 0x40d045
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
mov eax, dword [0x2b102d4]
inc esi
cmp esi, 0x5f6c74
jl 0x40d020
cmp eax, 0x110a
jne 0x40d215
mov edx, dword [esp + 0x44]
push edx
push ebx
mov dword [0x2b101a0], ebx
mov dword [0x2b101a4], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push ebx
push str.devoxubura_deyelomimubisewif
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.defowa
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
lea eax, [esp + 0x1078]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 0x4c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
push ebx
call fcn.004012a9
push ebx
push ebx
call fcn.004013b8
push ebx
push ebx
call fcn.004012a9
push ebx
call fcn.0040c9f4
add esp, 0x1c
push 4
call fcn.0040163f
add esp, 4
cmp eax, ebx
je 0x40d0d9
lea edx, [esp + 0x14]
mov dword [eax], edx
jmp 0x40d0db
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.0040163f
add esp, 4
cmp eax, ebx
je 0x40d10c
lea ecx, [esp + 0x2c]
mov dword [eax], ecx
jmp 0x40d10e
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 0x453d20
push 0x457978
call fcn.0040136f
mov eax, dword [esp + 0x48]
add esp, 0x10
cmp eax, ebx
je 0x40d185
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x40d17c
lea esi, [eax + 0x18]
lea ebx, [ebx]
cmp dword [esi], 0x10
jb 0x40d161
mov eax, dword [esi - 0x14]
push eax
call fcn.004013ad
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x40d150
mov eax, dword [esp + 0x38]
push eax
call fcn.004013ad
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.004013ad
mov dword [esp + 0x188c], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
je 0x40d1f7
mov edi, dword [esp + 0x24]
cmp eax, edi
je 0x40d1ee
lea esi, [eax + 0x18]
lea esp, [esp]
cmp dword [esi], 8
jb 0x40d1d1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004013ad
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x40d1c0
mov eax, dword [esp + 0x20]
push eax
call fcn.004013ad
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004013ad
mov eax, dword [0x2b102d4]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [0x2b0fff4], eax
cmp dword [0x2b102d4], ebx
jbe 0x40d26a
mov esi, 0x19b0
mov edx, dword [0x2b102d8]
mov dword [esp + 0x10], edx
mov eax, 0xa231
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dl, byte [eax + ecx]
mov eax, dword [0x2b0fff4]
mov byte [eax + ecx], dl
mov eax, dword [0x2b102d4]
cmp eax, 0x5ab
jne 0x40d265
mov dword [0x2b0fff8], esi
inc ecx
cmp ecx, eax
jb 0x40d231
push 0x453d24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.0040cb50
call fcn.0040cb30
mov eax, dword [0x2b102d4]
mov ecx, dword [0x456060]
mov edi, dword [0x2b0fff4]
mov esi, eax
mov dword [0x2b0fff0], ecx
cmp eax, 0x114e
jne 0x40d2ba
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea edx, [esp + 0x4c]
push edx
push str.kumamukafarowekabedararuf_zinasinurumurehosaxeku_miwabiloxajikokofudovaheyapir
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2b102d4]
cmp eax, 0x2f
jne 0x40d2c8
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push edi
call fcn.0040cd10
mov ecx, dword [0x2b0fff4]
add esp, 8
xor eax, eax
lea ebx, [ebx]
cmp eax, 0xd606b
jne 0x40d2ed
add ecx, 0
inc eax
cmp eax, 0x24e87d
jl 0x40d2e0
mov edi, dword [esp + 0x54]
mov dword [0x2b0fff4], ecx
xor esi, esi
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_FindAtomA]
cmp esi, 0x408e
jle 0x40d31c
cmp edi, 0xf5bed7
jne 0x40d325
inc esi
cmp esi, 0x687ed2
jl 0x40d301
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
jmp 0x40d340
cmp dword [0x2b102d4], 0x7c4
mov dword [0x2b0fffc], edi
jne 0x40d354
call esi
sub ebx, 1
jne 0x40d340
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