Function at 0x434680
Capabilities:
Check for unexpected memory writes
Clear file content
Delete file
Enumerate files on windows
Get common file path
Get disk information
Get file attributes
Get hostname
Manipulate console buffer
Move file
Print debug messages
Read .ini file
Set console window title
Set current directory
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24bc
call fcn.00434ee0
cmp dword [0x4d7784], 0x177
jne 0x4346d3
push 0
call fcn.00435210
push 0
call fcn.00435260
push 0
push 0
call fcn.0044b6f0
push 0
push 0
call fcn.004351c0
push 0
call fcn.00435140
push 0
call fcn.00434f40
push 0
push 0
call fcn.00434f10
add esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 8], 0
lea esp, [esp]
cmp dword [0x4d7784], 0x123f
jne 0x434865
lea eax, [ebp - 0x10]
push eax
push 0
call esi
push 0x401a84
call ebx
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea edx, [ebp - 0x4bc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push 0
lea eax, [ebp - 0xcbc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0x401aac
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
lea ecx, [ebp - 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
xor edx, edx
lea ecx, [ebp - 0x34]
push ecx
push edx
push edx
push edx
push edx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0
push 0
lea eax, [ebp - 0x1cbc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push 0
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
push 0
push 0
push 0x401ac4
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
push 0x401aec
push 0x401af8
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_AllocateUserPhysicalPages]
lea eax, [ebp - 0xc]
push eax
push 0
call esi
push 0x401b3c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp dword [ebp - 8], 0x6a2
je 0x43489c
cmp dword [0x4d7784], 0xf
jne 0x434888
push 0
lea ecx, [ebp - 0x4bc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x1137c9d
jl 0x4346f0
jmp 0x4348a8
mov edx, dword [0x45a4ac]
mov dword [0x4d7784], edx
mov ebx, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
xor esi, esi
xor edi, edi
cmp edi, 0x5e3
jge 0x4348ca
push esi
call dword [sym.imp.USER32.dll_GetCursorInfo]
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
cmp dword [0x4d7784], 0x6b
jne 0x4348f9
push 0x30
lea eax, [ebp - 0x64]
push esi
push eax
mov dword [ebp - 0x68], esi
call fcn.00435280
add esp, 0xc
lea ecx, [ebp - 0x68]
push ecx
push esi
push 0x401b5c
call ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCompact]
mov dword [0x4d6d70], esi
cmp edi, 0x26f46
jle 0x434940
mov eax, 0xdff62a
cmp dword [ebp - 0xc], eax
je 0x434940
cmp dword [ebp - 0x50], eax
je 0x434940
cmp dword [0x4d7784], 0xfc5
jne 0x434940
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x4bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x401b80
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
inc edi
cmp edi, 0x6b4078b9
jl 0x4348b2
mov esi, dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAdjustment]
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x3fa
jne 0x434976
push 0x4d7784
call fcn.00434340
cmp dword [0x4d7784], 0x65
jne 0x434b49
lea ecx, [ebp - 0x88]
push ecx
call esi
push 0x401b94
push 0x401bc8
push 0x401c1c
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push 0x401c2c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
push 0
push 0
call edi
push 0x30
lea edx, [ebp - 0x64]
push 0
push edx
mov dword [ebp - 0x68], 0
call fcn.00435280
add esp, 0xc
push 0
lea eax, [ebp - 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
lea edx, [ebp - 0x1cbc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
push 0x401c50
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4bc]
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
xor edx, edx
mov ecx, edx
push ecx
push edx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea edx, [ebp - 0x1c]
push edx
push 0
lea eax, [ebp - 0xcbc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0
push 0x401c90
push 0x401ce8
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x401d58
lea ecx, [ebp - 0x14bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0x485ceb
jl 0x434964
call fcn.004343f0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0x199615
jmp 0x434b70
cmp dword [0x4d7784], 0x105
jne 0x434b83
push 0x401db0
call esi
dec dword [ebp - 4]
jne 0x434b70
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [ebp - 8], 0
jmp 0x434ba0
cmp dword [0x4d7784], 0xfd
jne 0x434bcd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea edx, [ebp - 0x1fc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp dword [ebp - 8], 0x3c76
jne 0x434be0
mov eax, dword [0x45a4a0]
mov dword [0x4d7788], eax
cmp dword [0x4d7784], 0x23
jne 0x434d28
push 0
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0
push 0
lea ecx, [ebp - 0x4bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea edx, [ebp - 0x14bc]
push edx
push 0
push 0x401dc0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1cbc]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
lea edx, [ebp - 0x30]
push edx
push eax
xor ecx, ecx
push ecx
lea edx, [ebp - 0xc]
push edx
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
lea edx, [ebp - 0x1c]
push edx
push 0
lea eax, [ebp - 0x8bc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
push 0
push 0
call edi
push 0x401e18
push 0
lea eax, [ebp - 0x24bc]
push eax
push 0x401e30
push 0x401e40
push 0x401e98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0xe67cf
jl 0x434ba0
xor esi, esi
cmp dword [0x4d7784], esi
jbe 0x434d6e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ebx, [ebx]
push esi
call fcn.00434190
cmp dword [0x4d7784], 0x22
jne 0x434d65
lea ecx, [ebp - 0xc]
push ecx
call edi
inc esi
cmp esi, dword [0x4d7784]
jb 0x434d50
call fcn.00434350
call fcn.00434410
cmp dword [0x4d7784], 0x1d
jne 0x434ec3
xor esi, esi
push esi
push 0x401ef8
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0x401f20
push 0x401f54
push 0x401f70
push 0x401fb4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x401fd8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x401fe8
push esi
push 0x402050
push 0x40208c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push esi
lea ecx, [ebp - 0x24bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalWire]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x30
lea eax, [ebp - 0xb8]
push esi
push eax
mov dword [ebp - 0xbc], esi
call fcn.00435280
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0xbc]
push edx
push 0x4020c0
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigW]
lea eax, [ebp - 0x14bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
lea ecx, [ebp - 0x30c]
push ecx
push 0x402140
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
lea edx, [ebp - 8]
push edx
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10