Function at 0x40b300
Capabilities:
Check for unexpected memory writes
Copy file
Create mailslot
Enumerate gui resources
Identify system language via api
Manipulate console buffer
Move file
Print debug messages
Read .ini file
Set uefi variable

Disassembly:
mov eax, 0x1848
call fcn.0040c790
cmp dword [0x484004], 0x177
jne 0x40b345
push 0
call fcn.0040c740
push 0
push 0
call fcn.0040c4f0
push 0
call fcn.0040c220
push 0
call fcn.0040c1a0
push 0
call fcn.0040bfa0
push 0
call fcn.0040be60
add esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov dword [esp + 0x10], eax
jmp 0x40b370
cmp dword [0x484004], 0x47
jne 0x40b461
lea eax, [esp + 0x20]
push eax
push 0
call esi
push 0
lea ecx, [esp + 0x145c]
push ecx
call edi
lea edx, [esp + 0x24]
push edx
call ebx
push 0
call ebp
push 0
lea eax, [esp + 0xc5c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x1c], cx
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea ecx, [esp + 0x45c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push 0x4014dc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
call dword [sym.imp.KERNEL32.dll_CancelDeviceWakeupRequest]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov eax, dword [esp + 0x10]
cmp eax, 0x6a1
je 0x40b47a
inc eax
cmp eax, 0x1137686
mov dword [esp + 0x10], eax
jl 0x40b370
jmp 0x40b486
mov edx, dword [0x430548]
mov dword [0x484004], edx
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebp, dword [sym.imp.MSIMG32.dll_AlphaBlend]
xor eax, eax
mov dword [esp + 0x10], eax
cmp eax, 0x4d13
jge 0x40b4bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetBoundsRect]
cmp dword [0x484004], 0x6b
jne 0x40b534
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
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 + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.0040c7c0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x401508
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
push 0
push 0x401550
push 0x401570
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
mov eax, dword [esp + 0x10]
inc eax
xor ecx, ecx
cmp eax, 0x180c14c3
mov dword [0x483690], ecx
mov dword [esp + 0x10], eax
jl 0x40b4a2
mov edi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebp, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
mov dword [esp + 0x18], ecx
lea ebx, [ebx]
cmp ecx, 0x40d
jne 0x40b582
push 0x484004
call fcn.0040af90
cmp dword [0x484004], 0x78
jne 0x40b706
push 0
call edi
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x14], dx
mov word [esp + 0x16], ax
mov edx, dword [esp + 0x14]
push edx
push eax
push 0x4015b4
push eax
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
push 0x4015f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
lea eax, [esp + 0x460]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
push 0
call esi
push 0
push 0
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0x401638
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
push 0
lea edx, [esp + 0xc5c]
push edx
push 0x401664
push 0x40168c
push 0x4016b4
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push 0
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0
push 0
push 0
call esi
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, 0x40bd22
mov dword [esp + 0x18], ecx
jl 0x40b570
call fcn.0040b060
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor esi, esi
cmp dword [0x484004], 0x15
jne 0x40b733
push 0
push 0
call edi
cmp esi, 0x1550
jne 0x40b747
mov ecx, dword [0x430008]
mov dword [0x484008], ecx
inc esi
cmp esi, 0x56a5e7
jl 0x40b724
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [esp + 0x10], 0x719c87
cmp dword [0x484004], 0xfd
jne 0x40b784
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
cmp dword [0x484004], 0x23
jne 0x40b7e4
push 0
push 0
push 0
push 0
call esi
push 0x4016ec
lea edx, [esp + 0x5c]
push edx
call edi
push 0
push 0
call ebx
push 0
push 0
lea eax, [esp + 0x460]
push eax
push 0
push 0
push 0
push 0
call ebp
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
sub dword [esp + 0x10], 1
jne 0x40b770
xor esi, esi
cmp dword [0x484004], esi
jbe 0x40b804
push esi
call fcn.0040ae60
inc esi
cmp esi, dword [0x484004]
jb 0x40b7f5
call fcn.0040afa0
call fcn.0040b080
cmp dword [0x484004], 0x1d
pop edi
pop esi
pop ebp
pop ebx
jne 0x40b905
push 0
lea edx, [esp + 8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x454]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x4016fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
xor eax, eax
xor edx, edx
mov word [esp], dx
mov word [esp + 2], ax
mov ecx, dword [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
call fcn.0040af70
xor eax, eax
add esp, 0x1848
ret 0x10