Function at 0x436350
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.00436e10
cmp dword [0x4e0bc4], 0x177
jne 0x436388
push 0
call fcn.00437240
push 0
push 0
call fcn.004371f0
push 0
call fcn.00437170
add esp, 0x10
call fcn.00436e60
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 0x436517
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 - 0x18c4]
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 - 0x8c4]
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 - 0x10c4]
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 0x43652f
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x1137c9d
jl 0x4363a0
jmp 0x43653b
mov edx, dword [0x4634ac]
mov dword [0x4e0bc4], edx
mov ebx, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
xor edi, edi
cmp edi, 0x5e3
jge 0x436569
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 0x4365a0
push 0x30
lea eax, [ebp - 0x6c]
push 0
push eax
mov dword [ebp - 0x70], 0
call fcn.00437510
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 0x4365ea
mov eax, 0xdff62a
cmp dword [ebp - 8], eax
je 0x4365ea
cmp dword [ebp - 0x58], eax
je 0x4365ea
cmp dword [0x4e0bc4], 0xfc5
jne 0x4365ea
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 0x436543
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 0x436619
add dword [0x4e0bc4], 0x12336
cmp dword [0x4e0bc4], 0x65
jne 0x4367d5
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0
push 0
push 0x40163c
push 0x401658
push 0x401684
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
push 0x40168c
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.00437510
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 0x4016b0
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_MoveFileExA]
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 0x401728
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 0x436608
call fcn.00436130
mov dword [ebp - 4], 0x199615
cmp dword [0x4e0bc4], 0x105
jne 0x436807
push 0x401780
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
dec dword [ebp - 4]
jne 0x4367f0
mov dword [ebp - 0xc], 0
cmp dword [0x4e0bc4], 0xfd
jne 0x436840
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 0x436855
mov ecx, dword [0x4634a0]
mov dword [0x4e0bc8], ecx
cmp dword [0x4e0bc4], 0x23
jne 0x436982
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 - 0x20c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0
lea eax, [ebp - 0x10c4]
push eax
push 0
push 0x401790
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 - 0x4c4]
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4017e8
push 0x401824
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 0x401834
push 0
lea edx, [ebp - 0x14c4]
push edx
push 0x40184c
push 0x40185c
push 0x401870
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0xe67cf
jl 0x436813
xor esi, esi
cmp dword [0x4e0bc4], esi
jbe 0x4369c2
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
call fcn.00435ef0
cmp dword [0x4e0bc4], 0x22
jne 0x4369b9
lea eax, [ebp - 8]
push eax
call edi
inc esi
cmp esi, dword [0x4e0bc4]
jb 0x4369a4
call fcn.00436090
call fcn.00436150
cmp dword [0x4e0bc4], 0x1d
jne 0x436b1f
xor esi, esi
push esi
push 0x401888
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0x4018b0
push 0x4018e4
push 0x401900
push 0x401944
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x401968
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.00437510
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0xa4]
push eax
push 0x401978
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 - 0x14c4]
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 0x4019b8
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