Function at 0x428bc0
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 0x42b36b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1ef8
call fcn.00412a10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push ebp
mov ebp, dword [sym.imp.MSIMG32.dll_AlphaBlend]
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 0x428c1b
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov eax, dword [esp + 0x10]
cmp dword [0x7b73fc], 0x6fb
jne 0x428c8e
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebp
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
mov dword [esp + 0x50], 0
call fcn.0040afe0
add esp, 0xc
push edi
lea ecx, [esp + 0x48]
push ecx
push 0
call ebx
push 0
lea edx, [esp + 0x1cc]
push edx
push 0x404058
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push 0
push 0
push 0x404094
push 0x4040bc
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e9c85dc
jle 0x428ca9
cmp dword [esp + 0x10], 0xc0e420
je 0x428ca9
cmp dword [esp + 0x50], 0x9266bc0
jne 0x428cbb
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x7d62d
jl 0x428c04
jmp 0x428cf4
cmp dword [0x7b73fc], 0x28
jne 0x428cf4
lea eax, [esp + 0x10]
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 0x4040e0
push 0x4040f0
push 0x404104
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
cmp dword [0x7b73fc], 0xcf8
jne 0x428d72
push 0x404178
push 0
call fcn.00407e75
xor esi, esi
push esi
push esi
call fcn.00413e80
push 0x404184
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
call fcn.00407cb0
add esp, 0x14
push eax
push 0x404184
lea ecx, [esp + 0x20]
call fcn.004060d0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x1f1c], esi
call fcn.00405830
cmp dword [esp + 0x2c], 0x10
jb 0x428d6c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00407f3d
add esp, 4
push esi
call fcn.004082c9
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 0x428d99
mov eax, 0x5d1
add dword [0x7b73fc], eax
cmp dword [0x7b73fc], 0xca3
jne 0x428dca
push 0
push 0
push 0
push 0
call edi
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push 0x4041a4
push edx
mov dword [esp + 0x24], edx
call ebx
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x428d86
mov eax, dword [0x7b73fc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7b7364], eax
mov eax, dword [0x7b73fc]
xor esi, esi
test eax, eax
je 0x428e8c
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 0x428e53
push 0
lea ecx, [esp + 0x1cc]
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 0x4041bc
call ebx
call fcn.00428670
mov eax, dword [0x7b73fc]
cmp eax, 0x29
jne 0x428e83
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 [0x7b73fc]
inc esi
cmp esi, eax
jb 0x428e07
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x9682ab
cmp eax, 3
jne 0x428eaf
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x7b73fc]
dec edi
jne 0x428e97
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
mov dword [0x7b736c], edi
cmp eax, 0x222
jne 0x428ee8
push 0
lea ecx, [esp + 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
call esi
mov eax, dword [0x7b73fc]
dec ebx
jne 0x428ec2
mov byte [0x4336b0], bl
call fcn.004285c0
call fcn.00428990
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
nop
cmp dword [0x7b73fc], 0xba
jne 0x428f27
push 0x4041f0
push 0
push 0
call ebp
push 0
call edi
push 0
call ebx
cmp esi, 0x2f64
jne 0x428f42
mov eax, 0x4db9
add dword [0x7b7364], eax
inc esi
cmp esi, 0x1605a
jl 0x428f10
mov eax, 0x6d
mov word [0x7b7406], ax
mov eax, 0x6c
mov word [0x7b7414], ax
mov edx, 0x69
xor eax, eax
push 0x7b7400
mov dword [0x7b7410], 0x6c0064
mov dword [0x7b740c], 0x2e0032
mov word [0x7b7404], dx
mov dword [0x7b7400], 0x73006d
mov word [0x7b7416], ax
mov dword [0x7b7408], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, 0x73
mov eax, 0x6d
mov word [0x7b7402], dx
mov word [0x7b7406], ax
xor eax, eax
cmp dword [0x7b73fc], 0xc30
mov ecx, 0x33
mov edx, 0x67
mov word [0x7b740a], cx
mov word [0x7b7416], ax
mov word [0x7b7408], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
mov dword [0x7b7410], 0x6c0064
mov word [0x7b7404], ax
mov word [0x7b7400], cx
mov word [0x7b7414], dx
mov dword [0x7b740c], 0x2e0032
jne 0x429114
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 edx, [esp + 0x5c8]
push edx
push 0x404228
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
lea ecx, [esp + 0xf0c]
push ecx
push 0x404230
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x1d4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea ecx, [esp + 0x70c]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x404264
call esi
push 0
lea eax, [esp + 0x170c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x404298
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov ecx, dword [esp + 0x1f0c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret