Function at 0x40b160
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, 0x1854
call fcn.0040c5a0
cmp dword [0x4e75e4], 0x177
jne 0x40b1a8
push 0x4014cc
push 0
call fcn.0040c300
push 0
call fcn.0040c2b0
push 0
push 0
call fcn.0040c060
call fcn.0040bf20
push 0
call fcn.0040bef0
push 0
call fcn.0040bdb0
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 [0x4e75e4], 0x47
jne 0x40b2f7
lea eax, [esp + 0x28]
push eax
push 0
call esi
push 0
lea ecx, [esp + 0xc68]
push ecx
call edi
lea edx, [esp + 0x4c]
push edx
call ebx
push 0
call ebp
push 0
lea eax, [esp + 0x468]
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 + 0x1068]
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 0x40b310
inc eax
cmp eax, 0x1137e56
mov dword [esp + 0x10], eax
jl 0x40b1d0
jmp 0x40b31c
mov ecx, dword [0x432100]
mov dword [0x4e75e4], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.GDI32.dll_GetBoundsRect]
xor edi, edi
xor esi, esi
lea esp, [esp]
cmp esi, 0x4d13
jge 0x40b33f
call ebx
push edi
push edi
push edi
call ebp
cmp dword [0x4e75e4], 0x6b
jne 0x40b351
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
inc esi
cmp esi, 0x180c14c3
mov dword [0x4e6c70], edi
jl 0x40b330
mov ebx, dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov edi, edi
cmp ecx, 0x40d
jne 0x40b392
push 0x4e75e4
call fcn.0040ade0
cmp dword [0x4e75e4], 0x78
jne 0x40b51f
push 0
call ebx
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 ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
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 + 0x106c]
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 edi
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 edi
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 + 0x468]
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 0x40b380
call fcn.0040aeb0
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor esi, esi
lea ecx, [ecx]
cmp dword [0x4e75e4], 0x15
jne 0x40b54f
push 0
push 0
call ebx
cmp esi, 0x1550
jne 0x40b563
mov edx, dword [0x431008]
mov dword [0x4e75e8], edx
inc esi
cmp esi, 0x56a5e7
jl 0x40b540
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], 0x719c87
jmp 0x40b590
cmp dword [0x4e75e4], 0xfd
jne 0x40b5a4
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
cmp dword [0x4e75e4], 0x23
jne 0x40b606
push 0
push 0
push 0
push 0
call esi
push 0
call ebx
push 0
push 0
call ebp
push 0
push 0
lea eax, [esp + 0x106c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
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 + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
sub dword [esp + 0x10], 1
jne 0x40b590
xor esi, esi
cmp dword [0x4e75e4], esi
jbe 0x40b626
push esi
call fcn.0040acc0
inc esi
cmp esi, dword [0x4e75e4]
jb 0x40b617
call fcn.0040adf0
call fcn.0040aed0
cmp dword [0x4e75e4], 0x1d
jne 0x40b71c
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x70]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x401664
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 eax, [esp + 0x2c]
push eax
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 ecx, [esp + 0x1068]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push 0x401678
push 0
lea eax, [esp + 0xc6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
call edi
call fcn.0040adc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1854
ret 0x10