Function at 0x4097b0
Capabilities:
Copy file
Create mailslot
Enumerate gui resources
Get hostname
Manipulate console buffer
Move file
Print debug messages
Read .ini file

Disassembly:
mov eax, 0x1840
call fcn.0040a700
cmp dword [0x4e0364], 0x177
jne 0x4097f9
push 0
call fcn.0040a6b0
push 0
push 0
call fcn.0040a460
push 0
push 0
call fcn.0040a410
push 0
call fcn.0040a390
push 0
push 0
call fcn.0040a190
push 0
call fcn.0040a110
add esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentActCtx]
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 0x409820
cmp dword [0x4e0364], 0x47
jne 0x409919
lea eax, [esp + 0x20]
push eax
push 0
call esi
push 0
lea ecx, [esp + 0x1454]
push ecx
call edi
lea edx, [esp + 0x28]
push edx
call ebx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
call ebp
push 0
lea ecx, [esp + 0x454]
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x1c], dx
mov word [esp + 0x1e], ax
mov edx, dword [esp + 0x1c]
push edx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0xc5c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea edx, [esp + 0x54]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
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 0x40146c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0x401484
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
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov eax, dword [esp + 0x10]
cmp eax, 0x6a1
je 0x409932
inc eax
cmp eax, 0x1137686
mov dword [esp + 0x10], eax
jl 0x409820
jmp 0x40993c
mov eax, dword [0x427100]
mov dword [0x4e0364], eax
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
xor esi, esi
mov edi, edi
cmp esi, 0x4d13
jge 0x40996c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp dword [0x4e0364], 0x6b
jne 0x40999e
push 0
call ebx
push 0
push 0
push 0
push 0
call ebp
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
cmp esi, 0x26ee9
mov dword [0x4df9f0], 0
jle 0x4099e0
cmp dword [esp + 0x14], 0xdfe5c2
je 0x4099e0
cmp dword [esp + 0x34], 0xdf5954
je 0x4099e0
cmp dword [0x4e0364], 0x28
jne 0x4099e0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x454]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc esi
cmp esi, 0x180c1397
jl 0x409950
mov edi, dword [sym.imp.KERNEL32.dll_DeleteAtom]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov esi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x409a10
cmp ecx, 0x40d
jne 0x409a22
push 0x4e0364
call fcn.004094a0
cmp dword [0x4e0364], 0x78
jne 0x409bae
push 0
lea eax, [esp + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x14], cx
mov word [esp + 0x16], dx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push 0x401494
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push 0x4014d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
call edi
push 0x401510
call ebx
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
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__hread]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
push 0
push 0x401548
push 0x401570
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
push 0
push 0
call esi
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0x401580
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
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
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
inc ecx
cmp ecx, 0x40bd22
mov dword [esp + 0x18], ecx
jl 0x409a10
call fcn.00409590
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor esi, esi
lea esp, [esp]
cmp dword [0x4e0364], 0x15
jne 0x409bdf
push 0
push 0
call edi
cmp esi, 0x1550
jne 0x409bf3
mov edx, dword [0x426008]
mov dword [0x4e0368], edx
inc esi
cmp esi, 0x56a5e3
jl 0x409bd0
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
lea esp, [esp]
cmp dword [0x4e0364], 0xfd
jne 0x409c34
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp dword [0x4e0364], 0x23
jne 0x409c94
push 0
push 0
push 0
push 0
call esi
push 0x401598
lea eax, [esp + 0x54]
push eax
call edi
push 0
push 0
call ebx
push 0
push 0
lea ecx, [esp + 0x458]
push ecx
push 0
push 0
push 0
push 0
call ebp
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
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 0x409c20
xor esi, esi
cmp dword [0x4e0364], esi
jbe 0x409cb4
push esi
call fcn.00409360
inc esi
cmp esi, dword [0x4e0364]
jb 0x409ca5
call fcn.004094b0
call fcn.004095b0
cmp dword [0x4e0364], 0x1d
pop edi
pop esi
pop ebp
pop ebx
jne 0x409db7
push 0
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x44c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x4015a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
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_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea ecx, [esp + 0x18]
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 + 0xc44]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
xor edx, edx
xor ecx, ecx
mov word [esp], cx
mov word [esp + 2], dx
mov eax, dword [esp]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
call fcn.00409480
xor eax, eax
add esp, 0x1840
ret 0x10