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

Disassembly:
mov eax, 0x104c
call fcn.00411b60
cmp dword [0x2b672e4], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b5ed
push 0
push 0
push 0
call fcn.00403d3d
add esp, 0xc
push 0x403738
push 0
call fcn.00403d3d
push 0
call fcn.0041adc6
fldz
add esp, 8
fstp dword [esp]
call fcn.00403af0
fstp st(0)
push 0x403744
push 0x403748
push 0x43dad0
call fcn.00403d3d
add esp, 0xc
push 0
push 0
call fcn.00403e9f
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor esi, esi
cmp esi, 0xc0a
jne 0x41b608
mov eax, 0x38d6
add dword [0x2b672e4], eax
cmp dword [0x2b672e4], 0xd04
jne 0x41b61c
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x33a146
jl 0x41b5f5
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c275
jge 0x41b641
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41b659
cmp edi, 0xacd436
je 0x41b659
cmp ebx, 0xad1af0c
jne 0x41b662
inc esi
cmp esi, 0x8c238a18
jb 0x41b635
mov eax, dword [0x2b672e4]
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_EnumCalendarInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [0x2b66dc8], eax
mov eax, dword [0x2b672e4]
mov dword [esp + 0x14], 0x962ae8
lea ebx, [ebx]
cmp eax, 3
jne 0x41b6b7
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2b672e4]
cmp eax, 0xd
jne 0x41b738
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x5c]
push eax
push 0
call ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x45c]
push edx
push 0
push 0x403750
push 0x4037c0
push 0x4037a4
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x403868
push 0
lea eax, [esp + 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x4038b8
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov eax, dword [0x2b672e4]
dec dword [esp + 0x14]
jne 0x41b6a0
xor esi, esi
test eax, eax
je 0x41b789
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 0x41b76e
push 0
call edi
push 0x403908
push 0
call ebx
call fcn.0041b2c0
mov eax, dword [0x2b672e4]
cmp eax, 0x29
jne 0x41b784
call ebp
mov eax, dword [0x2b672e4]
inc esi
cmp esi, eax
jb 0x41b75a
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x41b7c2
push 0x403930
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40384c
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 0x41b7cd
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x25865
mov ebp, 0x15a
cmp dword [0x2b672e4], ebp
jne 0x41b7f8
push 0
call ebx
push 0
push 0
call esi
dec edi
jne 0x41b7e6
mov byte [0x43dad0], 0
call fcn.0041ae00
call fcn.0041b550
call fcn.0041b2a0
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
jmp 0x41b830
cmp dword [0x2b672e4], 0x21
jne 0x41b859
call esi
push 0
push 0
lea edx, [esp + 0x860]
push edx
push 0
call edi
lea eax, [esp + 0x18]
push eax
push 0x40397c
push 0
call ebx
dec ebp
jne 0x41b830
call fcn.0041b4f0
cmp dword [0x2b672e4], 0x58c
mov byte [0x43dad1], 0x73
jne 0x41b8e9
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.004094f0
add esp, 0xc
push ebp
lea eax, [esp + 0x28]
push eax
push 0x4039b0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0x4039c4
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call fcn.0041b2b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104c
ret