Function at 0x4149b0
Capabilities:
Delete file
Enumerate files on windows
Enumerate gui resources
Get file attributes
Manipulate console buffer
Read .ini file
Read pipe
Terminate thread
Write pipe

Disassembly:
mov eax, 0x12cc
call fcn.004132d0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
xor esi, esi
cmp esi, 0xfc0
jne 0x4149d9
mov eax, 0x38d6
add dword [0x5149ec], eax
cmp dword [0x5149ec], 0xd04
jne 0x4149eb
push 0
push 0
call edi
inc esi
cmp esi, 0x31a576
jl 0x4149c6
mov eax, dword [0x5149ec]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [0x5144d0], eax
mov dword [esp + 0x14], 0x962ae8
cmp dword [0x5149ec], 3
jne 0x414a3d
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [0x5149ec], 0xd
jne 0x414adc
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
push 0
call ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x6dc]
push eax
push 0
push 0
push 0
push 0
call ebx
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x2e4]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
lea edx, [esp + 0xae0]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
dec dword [esp + 0x14]
jne 0x414a27
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c275
jge 0x414b02
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x414b1a
cmp edi, 0xacd436
je 0x414b1a
cmp ebx, 0xad1af0c
jne 0x414b23
inc esi
cmp esi, 0x8c238a18
jb 0x414af6
mov eax, dword [0x5149ec]
xor esi, esi
test eax, eax
je 0x414b5e
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 0xfe
jne 0x414b4f
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.00414700
mov eax, dword [0x5149ec]
inc esi
cmp esi, eax
jb 0x414b3a
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x414ba0
push 0x403430
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [sym.imp.USER32.dll_LoadMenuW]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x414bab
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x2592d
mov ebp, 0x15a
cmp dword [0x5149ec], ebp
jne 0x414bda
push 0
call ebx
push 0
push 0
push 0
push 0
call esi
dec edi
jne 0x414bc4
mov byte [0x4995c8], 0
call fcn.00414240
call fcn.00414980
call fcn.004146e0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x14], 0xdd7b3
cmp dword [0x5149ec], 0x21
jne 0x414c3f
push 0
push 0
push 0
call esi
push 0
push 0
lea ecx, [esp + 0x2e0]
push ecx
push 0
call edi
lea edx, [esp + 0x24]
push edx
call ebx
push 0
call ebp
dec dword [esp + 0x14]
jne 0x414c13
call fcn.00414920
cmp dword [0x5149ec], 0x58c
mov byte [0x4995c9], 0x73
jne 0x414cfb
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [esp + 0x198]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0x40343c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0x30
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x30], 0
call fcn.004051e0
add esp, 0xc
push 0
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [esp + 0x58]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call fcn.004146f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12cc
ret