Function at 0x40b230
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 0x40b781
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.00409a90
mov eax, dword [0x4a8030]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov eax, dword [0x4a8030]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
mov eax, dword [0x2b631cc]
cmp eax, 0x7c
jne 0x40b2fd
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x480]
push ecx
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]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea eax, [esp + 0x878]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x2b631cc], 0x2d
jne 0x40b2e6
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
push 0x4a6582
push 0x4aa870
call fcn.0040111b
mov eax, dword [0x2b631cc]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor ebx, ebx
jmp 0x40b310
cmp eax, 0x8cf
jne 0x40b351
push 0
push str.hilimonotutuno_niwerafumowigevaduzuso_xarebirij_wemusohikimuyazitegaco
lea ecx, [esp + 0x87c]
push ecx
call esi
push 0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x48c]
push eax
push 0
call edi
mov eax, dword [0x2b631cc]
cmp ebx, 0x162
jne 0x40b368
mov eax, dword [0x4a9d74]
add eax, 0xa231
mov dword [0x2b631cc], eax
cmp eax, 0x141
jne 0x40b383
mov dword [0x4aa8f8], 0xec58acac
mov dword [0x4aa8fc], 0xffffffff
inc ebx
cmp ebx, 0x129916c
jl 0x40b310
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x40b3a4
mov ecx, dword [0x4a8f58]
mov dword [0x2b631d0], ecx
cmp eax, 0x3c
jne 0x40b3b5
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov eax, dword [0x2b631cc]
inc esi
cmp esi, 0x5f6c74
jl 0x40b390
cmp eax, 0x110a
jne 0x40b565
push ebx
push ebx
mov dword [0x2b63098], ebx
mov dword [0x2b6309c], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push str.kefogonevazapojijuterojezelax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.koguzofivofuse
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call fcn.00401341
push ebx
push ebx
call fcn.00401341
push 4
call fcn.00401613
add esp, 0x14
cmp eax, ebx
je 0x40b42e
lea ecx, [esp + 0x14]
mov dword [eax], ecx
jmp 0x40b430
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 + 0x108c], 1
call fcn.00401613
add esp, 4
cmp eax, ebx
je 0x40b461
lea edx, [esp + 0x2c]
mov dword [eax], edx
jmp 0x40b463
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.00401341
push ebx
push ebx
call fcn.0040138c
push ebx
push ebx
push ebx
call fcn.00401216
mov eax, dword [esp + 0x54]
add esp, 0x1c
cmp eax, ebx
je 0x40b4d5
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x40b4cc
lea esi, [eax + 0x18]
nop
cmp dword [esi], 0x10
jb 0x40b4b1
mov eax, dword [esi - 0x14]
push eax
call fcn.00401381
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 0x40b4a0
mov eax, dword [esp + 0x38]
push eax
call fcn.00401381
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.00401381
mov dword [esp + 0x108c], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
je 0x40b547
mov edi, dword [esp + 0x24]
cmp eax, edi
je 0x40b53e
lea esi, [eax + 0x18]
lea esp, [esp]
cmp dword [esi], 8
jb 0x40b521
mov edx, dword [esi - 0x14]
push edx
call fcn.00401381
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 0x40b510
mov eax, dword [esp + 0x20]
push eax
call fcn.00401381
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.00401381
mov eax, dword [0x2b631cc]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [0x2b62eec], eax
cmp dword [0x2b631cc], ebx
jbe 0x40b5ba
mov edx, 0x19b0
mov eax, dword [0x2b631d0]
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 [0x2b62eec]
mov byte [esi + ecx], al
mov eax, dword [0x2b631cc]
cmp eax, 0x5ab
jne 0x40b5b5
mov dword [0x2b62ef0], edx
inc ecx
cmp ecx, eax
jb 0x40b581
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040ae80
call fcn.0040ae60
call fcn.0040b170
mov ecx, dword [0x2b62eec]
xor eax, eax
lea esp, [esp]
cmp eax, 0xbd9cb
jne 0x40b5ed
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b5e0
mov edi, dword [esp + 0x54]
mov dword [0x2b62eec], ecx
xor esi, esi
lea ecx, [esp + 0x874]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
cmp esi, 0x408e
jle 0x40b61f
cmp edi, 0xf5bed7
jne 0x40b628
inc esi
cmp esi, 0x687ed2
jl 0x40b601
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x10], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x2b631cc], 0xcc1
jne 0x40b651
push 0
call esi
cmp dword [0x2b631cc], 0x7c4
mov dword [0x2b62ef4], ebx
jne 0x40b665
call edi
sub dword [esp + 0x10], 1
jne 0x40b641
mov ecx, dword [esp + 0x1080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.0040110c
mov esp, ebp
pop ebp
ret