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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28c4
call fcn.00436f50
cmp dword [0x4e0bc4], 0x177
jne 0x4364b8
push 0
call fcn.00437380
push 0
push 0
call fcn.00437330
push 0
call fcn.004372b0
add esp, 0x10
call fcn.00436fa0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
xor eax, eax
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp - 4]
nop
cmp dword [0x4e0bc4], 0x123f
jne 0x436647
lea eax, [ebp - 0x1c]
push eax
push 0x4014f8
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea edx, [ebp - 0x10c4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push 0
lea eax, [ebp - 0x18c4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0x401550
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
lea ecx, [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
xor edx, edx
lea ecx, [ebp - 8]
push ecx
push edx
push edx
push edx
push edx
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
push 0
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push 0
lea eax, [ebp - 0x8c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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 0x401568
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
push 0x401590
push 0x4015a0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x4015e4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
push 0x4015f8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
cmp eax, 0x6a2
je 0x43665f
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x1137c9d
jl 0x4364d0
jmp 0x43666b
mov edx, dword [0x4634ac]
mov dword [0x4e0bc4], edx
mov ebx, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
xor edi, edi
cmp edi, 0x5e3
jge 0x436699
push 0
call dword [sym.imp.USER32.dll_GetCursorInfo]
push 0
push 0
call dword [sym.imp.USER32.dll_GetMenuItemID]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetBitmapBits]
cmp dword [0x4e0bc4], 0x6b
jne 0x4366d0
push 0x30
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 0x70], 0
call fcn.00437650
add esp, 0xc
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0x401618
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCompact]
mov dword [0x4e01b0], 0
cmp edi, 0x26f28
jle 0x43671a
mov eax, 0xdff62a
cmp dword [ebp - 8], eax
je 0x43671a
cmp dword [ebp - 0x58], eax
je 0x43671a
cmp dword [0x4e0bc4], 0xfc5
jne 0x43671a
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
inc edi
cmp edi, 0x6ad5a8f9
jl 0x436673
mov edi, dword [sym.imp.KERNEL32.dll_SetSystemTimeAdjustment]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
xor eax, eax
mov dword [ebp - 0x10], eax
cmp eax, 0x3fa
jne 0x436749
add dword [0x4e0bc4], 0x12336
cmp dword [0x4e0bc4], 0x65
jne 0x436907
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0
push 0
push 0x40163c
push 0x401670
push 0x4016c4
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push 0x4016d4
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]
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
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
call edi
push 0x30
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 0x70], 0
call fcn.00437650
add esp, 0xc
push 0
lea ecx, [ebp - 0x70]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalLock]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
lea eax, [ebp - 0x10c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
push 0x4016f8
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18c4]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
xor eax, eax
mov edx, eax
push edx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 0x8c4]
push ecx
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0
push 0
push 0
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_CreateHardLinkW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x401770
lea edx, [ebp - 0x20c4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x485ceb
jl 0x436738
call fcn.00436260
mov dword [ebp - 4], 0x199615
cmp dword [0x4e0bc4], 0x105
jne 0x436939
push 0x4017c8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
dec dword [ebp - 4]
jne 0x436922
mov dword [ebp - 0xc], 0
jmp 0x436950
cmp dword [0x4e0bc4], 0xfd
jne 0x43697d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp dword [ebp - 0xc], 0x3c76
jne 0x436992
mov ecx, dword [0x4634a0]
mov dword [0x4e0bc8], ecx
cmp dword [0x4e0bc4], 0x23
jne 0x436abf
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
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 edx, [ebp - 0x4c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea eax, [ebp - 0x20c4]
push eax
push 0
push 0x4017d8
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadModule]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
lea ecx, [ebp - 0x14c4]
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x401830
push 0x40186c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x28c4]
push edx
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ebp - 8]
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0
push 0
call edi
push 0x40187c
push 0
lea edx, [ebp - 0xcc4]
push edx
push 0x401894
push 0x4018a4
push 0x4018b8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0xe67cf
jl 0x436950
xor esi, esi
cmp dword [0x4e0bc4], esi
jbe 0x436aff
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
call fcn.00436020
cmp dword [0x4e0bc4], 0x22
jne 0x436af6
lea eax, [ebp - 8]
push eax
call edi
inc esi
cmp esi, dword [0x4e0bc4]
jb 0x436ae1
call fcn.004361c0
call fcn.00436280
cmp dword [0x4e0bc4], 0x1d
jne 0x436c5c
xor esi, esi
push esi
push 0x4018d0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0x4018f8
push 0x40192c
push 0x401948
push 0x40198c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x4019b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push esi
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push esi
lea ecx, [ebp - 0x28c4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
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 - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalWire]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleMouseButtons]
push 0x30
lea ecx, [ebp - 0xa0]
push esi
push ecx
mov dword [ebp - 0xa4], esi
call fcn.00437650
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0xa4]
push eax
push 0x4019c0
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 0xcc4]
push eax
mov dword [ebp - 0x30], esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
lea ecx, [ebp - 0x314]
push ecx
push 0x401a00
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea edx, [ebp - 0xc]
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