Function at 0x4097f0
Capabilities:
Copy file
Create mailslot
Enumerate gui resources
Manipulate console buffer
Move file
Print debug messages
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x479424]
sub esp, 0x858
cmp ecx, 0x177
jne 0x409828
push 0
call fcn.0040a9e0
push 0
call fcn.0040a710
push 0
push 0
call fcn.0040a6c0
add esp, 0x10
push 0
call fcn.0040a110
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov dword [ebp - 4], eax
cmp ecx, 0x47
jne 0x409910
push 0
lea eax, [ebp - 0x858]
push eax
call esi
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0x4013b8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 0x18]
push edx
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], cx
mov eax, dword [ebp - 0x14]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
lea ecx, [ebp - 0x458]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
xor eax, eax
xor edx, edx
lea ecx, [ebp - 8]
push ecx
mov word [ebp - 0x10], dx
mov word [ebp - 0xe], ax
mov edx, dword [ebp - 0x10]
push edx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov eax, dword [ebp - 4]
cmp eax, 0x6a1
je 0x409c97
mov ecx, dword [0x479424]
cmp ecx, 0xf
je 0x409ca6
inc eax
cmp eax, 0x53f9406
mov dword [ebp - 4], eax
jl 0x409842
mov ebx, dword [sym.imp.USER32.dll_CharUpperW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
xor esi, esi
cmp esi, 0x7423
jge 0x409959
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x3f56b
mov dword [0x478ab0], 0
jle 0x4099a6
cmp dword [ebp - 8], 0xdfe5c2
je 0x4099a6
cmp dword [ebp - 0x4c], 0xdf5954
je 0x4099a6
cmp dword [0x479424], 0x28
jne 0x4099a6
push 0x4013cc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 0x4013d8
push 0x4013fc
push 0x401430
call edi
inc esi
cmp esi, 0x180bc451
jl 0x409947
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x40d
jne 0x4099d8
push 0x479424
call fcn.004094c0
cmp dword [0x479424], 0x78
jne 0x409aa0
push 0x401440
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
push 0
push 0x4014ac
push 0x4014d4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov edx, dword [ebp - 8]
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0x4014e4
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
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]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ecx, dword [ebp - 4]
inc ecx
cmp ecx, 0x40bd22
mov dword [ebp - 4], ecx
jl 0x4099c6
call fcn.00409590
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
xor esi, esi
lea ecx, [ecx]
cmp dword [0x479424], 0x15
jne 0x409acf
push 0
push 0
call edi
cmp esi, 0x1550
jne 0x409ae3
mov ecx, dword [0x427008]
mov dword [0x479428], ecx
inc esi
cmp esi, 0x56a453
jl 0x409ac0
mov esi, dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov edi, dword [sym.imp.KERNEL32.dll_QueryDepthSList]
mov ebx, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov dword [ebp - 4], 0x7015e7
jmp 0x409b10
cmp dword [0x479424], 0xfd
jne 0x409b24
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
cmp dword [0x479424], 0x23
jne 0x409b43
call esi
xor eax, eax
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call edi
lea eax, [ebp - 0x30]
push eax
call ebx
sub dword [ebp - 4], 1
jne 0x409b10
xor esi, esi
cmp dword [0x479424], esi
jbe 0x409b62
push esi
call fcn.00409390
inc esi
cmp esi, dword [0x479424]
jb 0x409b53
mov esi, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edi, 0x1756bb
lea ecx, [ecx]
cmp dword [0x479424], 0x15a
jne 0x409b91
push 0
push 0
call esi
push 0x401504
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
sub edi, 1
jne 0x409b70
call fcn.004094d0
call fcn.004095b0
cmp dword [0x479424], 0x1d
pop edi
pop esi
pop ebx
jne 0x409c8a
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x401514
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_EnumResourceTypesW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
xor ecx, ecx
xor eax, eax
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov edx, dword [ebp - 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
call fcn.004094a0
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x428100]
mov dword [0x479424], eax
jmp 0x409939
push 0
lea ecx, [ebp - 0x458]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]