Function at 0x40b1e0
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 0x40b741
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.00409880
mov eax, dword [0x42b030]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov eax, dword [0x42b030]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
mov eax, dword [0x2ae61cc]
cmp eax, 0x7c
jne 0x40b2a5
push 0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x480]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
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]
push 0
lea eax, [esp + 0x878]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x2ae61cc], 0x2d
jne 0x40b28e
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x429810
push 0x42d870
call fcn.00401121
mov eax, dword [0x2ae61cc]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor ebx, ebx
cmp eax, 0x8cf
jne 0x40b2f4
push 0
push str.Dixaler_giyafinera_sowohalebe_marewexe
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 [0x2ae61cc]
cmp ebx, 0x162
jne 0x40b30b
mov eax, dword [0x42cd74]
add eax, 0xa231
mov dword [0x2ae61cc], eax
cmp eax, 0x141
jne 0x40b326
mov dword [0x42d8f8], 0xec58acac
mov dword [0x42d8fc], 0xffffffff
inc ebx
cmp ebx, 0x129916c
jl 0x40b2b3
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x40b347
mov ecx, dword [0x42bf58]
mov dword [0x2ae61d0], ecx
cmp eax, 0x3c
jne 0x40b35c
push str.korehodenodavaliwacezopujusenuhi
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov eax, dword [0x2ae61cc]
inc esi
cmp esi, 0x5f6c74
jl 0x40b333
cmp eax, 0x110a
jne 0x40b505
push ebx
push ebx
mov dword [0x2ae6098], ebx
mov dword [0x2ae609c], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push str.Didogu_zayeleturoyup_guk_kebimazatal_nehepariru
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.gepirocucone
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [esp + 0x4c]
push edx
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.004013fe
add esp, 0x14
cmp eax, ebx
je 0x40b3d5
lea ecx, [esp + 0x14]
mov dword [eax], ecx
jmp 0x40b3d7
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.004013fe
add esp, 4
cmp eax, ebx
je 0x40b408
lea edx, [esp + 0x2c]
mov dword [eax], edx
jmp 0x40b40a
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.00401347
push ebx
push ebx
push ebx
call fcn.0040121c
mov eax, dword [esp + 0x4c]
add esp, 0x14
cmp eax, ebx
je 0x40b475
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x40b46c
lea esi, [eax + 0x18]
nop
cmp dword [esi], 0x10
jb 0x40b451
mov eax, dword [esi - 0x14]
push eax
call fcn.00401387
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 0x40b440
mov eax, dword [esp + 0x38]
push eax
call fcn.00401387
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.00401387
mov dword [esp + 0x108c], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
je 0x40b4e7
mov edi, dword [esp + 0x24]
cmp eax, edi
je 0x40b4de
lea esi, [eax + 0x18]
lea esp, [esp]
cmp dword [esi], 8
jb 0x40b4c1
mov edx, dword [esi - 0x14]
push edx
call fcn.00401387
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 0x40b4b0
mov eax, dword [esp + 0x20]
push eax
call fcn.00401387
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.00401387
mov eax, dword [0x2ae61cc]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [0x2ae5eec], eax
cmp dword [0x2ae61cc], ebx
jbe 0x40b55a
mov esi, 0x19b0
mov eax, dword [0x2ae61d0]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov al, byte [edx + ecx]
mov edx, dword [0x2ae5eec]
mov byte [edx + ecx], al
mov eax, dword [0x2ae61cc]
cmp eax, 0x5ab
jne 0x40b555
mov dword [0x2ae5ef0], esi
inc ecx
cmp ecx, eax
jb 0x40b521
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040ae80
call fcn.0040ae60
call fcn.0040b130
mov ecx, dword [0x2ae5eec]
xor eax, eax
lea esp, [esp]
cmp eax, 0xbd9cb
jne 0x40b58d
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b580
mov ebx, dword [esp + 0x54]
mov edi, dword [sym.imp.USER32.dll_GetProcessDefaultLayout]
mov dword [0x2ae5eec], ecx
xor esi, esi
jmp 0x40b5b0
lea eax, [esp + 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push 0
call edi
cmp esi, 0x408e
jle 0x40b5d2
cmp ebx, 0xf5bed7
jne 0x40b5db
inc esi
cmp esi, 0x687ed2
jl 0x40b5b0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x1e4165
mov edi, 0x8e46a6f0
jmp 0x40b5f0
cmp dword [0x2ae61cc], 0xcc1
jne 0x40b607
push 0
push 0
push 0
call sub.KERNEL32.dll_SetConsoleDisplayMode
cmp dword [0x2ae61cc], 0x7c4
mov dword [0x2ae5ef4], edi
jne 0x40b61b
call esi
sub ebx, 1
jne 0x40b5f0
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.00401112
mov esp, ebp
pop ebp
ret