Function at 0x40b230
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

Disassembly:
mov eax, 0x1c54
call fcn.0040c690
cmp dword [0x4e86a4], 0x177
jne 0x40b278
push 0x4014cc
push 0
call fcn.0040c3f0
push 0
call fcn.0040c3a0
push 0
push 0
call fcn.0040c150
call fcn.0040c010
push 0
call fcn.0040bfe0
push 0
call fcn.0040bea0
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
lea ebx, [ebx]
cmp dword [0x4e86a4], 0x47
jne 0x40b3c7
lea eax, [esp + 0x28]
push eax
push 0
call esi
push 0
lea ecx, [esp + 0x1068]
push ecx
call edi
lea edx, [esp + 0x4c]
push edx
call ebx
push 0
call ebp
push 0
lea eax, [esp + 0x868]
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 + 0x24]
push eax
mov word [esp + 0x24], cx
mov word [esp + 0x26], dx
mov ecx, dword [esp + 0x24]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x70]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea ecx, [esp + 0x1468]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x18], dx
mov word [esp + 0x1a], ax
mov edx, dword [esp + 0x18]
push edx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
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 0x4014d8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
push 0
call dword [sym.imp.KERNEL32.dll_CancelDeviceWakeupRequest]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobSet]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov eax, dword [esp + 0x10]
cmp eax, 0x6a1
je 0x40b3e0
inc eax
cmp eax, 0x1137e56
mov dword [esp + 0x10], eax
jl 0x40b2a0
jmp 0x40b3ec
mov ecx, dword [0x433100]
mov dword [0x4e86a4], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.GDI32.dll_GetBitmapBits]
xor edi, edi
xor esi, esi
lea esp, [esp]
cmp esi, 0x4d13
jge 0x40b40f
call ebx
push edi
push edi
push edi
call ebp
cmp dword [0x4e86a4], 0x6b
jne 0x40b421
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
inc esi
cmp esi, 0x180c14c3
mov dword [0x4e7d30], edi
jl 0x40b400
mov edi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov edi, edi
cmp ecx, 0x40d
jne 0x40b462
push 0x4e86a4
call fcn.0040aeb0
cmp dword [0x4e86a4], 0x78
jne 0x40b5f3
push 0
call edi
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x14], dx
mov word [esp + 0x16], ax
mov edx, dword [esp + 0x14]
push edx
push eax
push 0x4014f0
push eax
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
push 0x401530
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0
lea eax, [esp + 0x146c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x401570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
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_GetConsoleAliasExesLengthA]
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
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0x4015b0
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
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
lea eax, [esp + 0x868]
push eax
push 0x4015dc
push 0x401604
push 0x40162c
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push 0
lea ecx, [esp + 0x68]
push ecx
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 + 0x14]
inc ecx
cmp ecx, 0x40bd22
mov dword [esp + 0x14], ecx
jl 0x40b450
call fcn.0040af80
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor esi, esi
cmp dword [0x4e86a4], 0x15
jne 0x40b620
push 0
push 0
call edi
cmp esi, 0x1550
jne 0x40b634
mov edx, dword [0x432008]
mov dword [0x4e86a8], edx
inc esi
cmp esi, 0x56a5e7
jl 0x40b611
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [esp + 0x10], 0x719c87
lea ecx, [ecx]
cmp dword [0x4e86a4], 0xfd
jne 0x40b674
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
cmp dword [0x4e86a4], 0x23
jne 0x40b6f3
push 0
push 0
push 0
push 0
call esi
push 0
call edi
push 0
push 0
call ebx
push 0
push 0
lea eax, [esp + 0x146c]
push eax
push 0
push 0
push 0
push 0
call ebp
lea ecx, [esp + 0x18]
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
lea edx, [esp + 0x86c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0x401664
push 0
lea eax, [esp + 0x6c]
push eax
push 0x401690
push 0x4016b0
push 0x4016f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub dword [esp + 0x10], 1
jne 0x40b660
xor esi, esi
cmp dword [0x4e86a4], esi
jbe 0x40b717
push esi
call fcn.0040ad90
inc esi
cmp esi, dword [0x4e86a4]
jb 0x40b708
call fcn.0040aec0
call fcn.0040afa0
cmp dword [0x4e86a4], 0x1d
pop edi
pop esi
pop ebp
pop ebx
jne 0x40b815
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x40172c
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_OutputDebugStringA]
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 ecx, [esp + 0x1c]
push ecx
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_CopyFileW]
push 0
lea edx, [esp + 0x1458]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push 0x401740
push 0
lea ecx, [esp + 0x105c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
call fcn.0040ae90
xor eax, eax
add esp, 0x1c54
ret 0x10