Function at 0x41e1c0
Capabilities:
Check mutex on windows
Enumerate gui resources
Get common file path
Get file attributes
Get hostname
Manipulate console buffer
Query environment variable
Read .ini file
Read pipe
Write pipe

Disassembly:
mov eax, 0x184c
call fcn.00415920
cmp dword [0x2b6a404], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41e23d
push 0
push 0
push 0
call fcn.00403e60
add esp, 0xc
push 0x403748
push 0
call fcn.00403e60
push 0
push 0
push 0
push 0x440bf0
call fcn.00403dea
push 0
call fcn.0041da0a
fldz
add esp, 0x18
fstp dword [esp]
call fcn.00403b00
fstp st(0)
push 0x403754
push 0x403758
push 0x440bf0
call fcn.00403e60
add esp, 0xc
push 0
push 0
call fcn.00403fc2
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor esi, esi
cmp esi, 0xc0a
jne 0x41e258
mov eax, 0x38d6
add dword [0x2b6a404], eax
cmp dword [0x2b6a404], 0xd04
jne 0x41e26c
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x33a146
jl 0x41e245
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c275
jge 0x41e291
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41e2a9
cmp edi, 0xacd436
je 0x41e2a9
cmp ebx, 0xad1af0c
jne 0x41e2b2
inc esi
cmp esi, 0x8c238a18
jb 0x41e285
mov eax, dword [0x2b6a404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [0x2b69ee8], eax
mov eax, dword [0x2b6a404]
mov dword [esp + 0x10], 0x962ae8
lea ebx, [ebx]
cmp eax, 3
jne 0x41e307
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2b6a404]
cmp eax, 0xd
jne 0x41e3ee
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
push 0
call ebp
push 0
call ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc5c]
push edx
push 0
push 0x403760
push 0x4037d0
push 0x4037b4
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x464]
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
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x403878
push 0
lea edx, [esp + 0x860]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea eax, [esp + 0x18]
push eax
push 0
push 0x4038c8
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
push 0
lea ecx, [esp + 0x1060]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
mov eax, dword [0x2b6a404]
dec dword [esp + 0x10]
jne 0x41e2f0
xor esi, esi
test eax, eax
je 0x41e43f
mov edi, dword [sym.imp.KERNEL32.dll__lclose]
mov ebx, dword [sym.imp.KERNEL32.dll_FatalAppExitA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, 0xfe
jne 0x41e424
push 0
call edi
push 0x403918
push 0
call ebx
call fcn.0041df00
mov eax, dword [0x2b6a404]
cmp eax, 0x29
jne 0x41e43a
call ebp
mov eax, dword [0x2b6a404]
inc esi
cmp esi, eax
jb 0x41e410
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x41e478
push 0x403940
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40385c
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_LoadMenuA]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x41e483
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x25865
mov ebp, 0x15a
lea esp, [esp]
cmp dword [0x2b6a404], ebp
jne 0x41e4b2
push 0
call ebx
push 0
push 0
call esi
dec edi
jne 0x41e4a0
mov byte [0x440bf0], 0
call fcn.0041da40
call fcn.0041e190
call fcn.0041dee0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ebp, 0xdd7b3
cmp dword [0x2b6a404], 0x21
jne 0x41e50b
call esi
push 0
push 0
lea edx, [esp + 0x1060]
push edx
push 0
call edi
lea eax, [esp + 0x14]
push eax
push 0x40398c
push 0
call ebx
dec ebp
jne 0x41e4e2
call fcn.0041e010
cmp dword [0x2b6a404], 0x58c
mov byte [0x440bf1], 0x73
jne 0x41e59b
lea ecx, [esp + 0x58]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0x30
lea edx, [esp + 0x2c]
push ebp
push edx
mov dword [esp + 0x30], ebp
call fcn.0040a690
add esp, 0xc
push ebp
lea eax, [esp + 0x28]
push eax
push 0x4039c0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0x4039d4
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call fcn.0041def0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x184c
ret