Function at 0x4097e0
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 [0x479504]
sub esp, 0x858
cmp ecx, 0x177
jne 0x409818
push 0
call fcn.0040aa00
push 0
call fcn.0040a730
push 0
push 0
call fcn.0040a6e0
add esp, 0x10
push 0
call fcn.0040a130
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 0x409900
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 0x4013bc
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 0x409c87
mov ecx, dword [0x479504]
cmp ecx, 0xf
je 0x409c96
inc eax
cmp eax, 0x53f9406
mov dword [ebp - 4], eax
jl 0x409832
mov ebx, dword [sym.imp.USER32.dll_CharUpperW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
xor esi, esi
cmp esi, 0x7423
jge 0x409949
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x3f56b
mov dword [0x478b90], 0
jle 0x409996
cmp dword [ebp - 8], 0xdfe5c2
je 0x409996
cmp dword [ebp - 0x4c], 0xdf5954
je 0x409996
cmp dword [0x479504], 0x28
jne 0x409996
push 0x4013d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 0x4013dc
push 0x401400
push 0x401434
call edi
inc esi
cmp esi, 0x180bc451
jl 0x409937
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x40d
jne 0x4099c8
push 0x479504
call fcn.004094b0
cmp dword [0x479504], 0x78
jne 0x409a90
push 0x401440
call esi
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
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 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_FreeConsole]
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 0x4099b6
call fcn.00409580
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
xor esi, esi
lea ecx, [ecx]
cmp dword [0x479504], 0x15
jne 0x409abf
push 0
push 0
call edi
cmp esi, 0x1550
jne 0x409ad3
mov ecx, dword [0x427008]
mov dword [0x479508], ecx
inc esi
cmp esi, 0x56a453
jl 0x409ab0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFiber]
mov edi, dword [sym.imp.KERNEL32.dll_QueryDepthSList]
mov ebx, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov dword [ebp - 4], 0x7015e7
jmp 0x409b00
cmp dword [0x479504], 0xfd
jne 0x409b14
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
cmp dword [0x479504], 0x23
jne 0x409b35
push 0
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 0x409b00
xor esi, esi
cmp dword [0x479504], esi
jbe 0x409b54
push esi
call fcn.00409380
inc esi
cmp esi, dword [0x479504]
jb 0x409b45
mov esi, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edi, 0x1756bb
nop
cmp dword [0x479504], 0x15a
jne 0x409b81
push 0
push 0
call esi
push 0x401504
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
sub edi, 1
jne 0x409b60
call fcn.004094c0
call fcn.004095a0
cmp dword [0x479504], 0x1d
pop edi
pop esi
pop ebx
jne 0x409c7a
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_GetPrivateProfileIntA]
lea ecx, [ebp - 0x50]
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_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.00409490
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x428100]
mov dword [0x479504], eax
jmp 0x409929
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]