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

Disassembly:
sub esp, 0xc4c
cmp dword [0x2b67604], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b4dc
push 0
push 0
push 0
call fcn.00403c48
add esp, 0xc
push 0x4036f8
push 0
call fcn.00403c48
push 0
call fcn.00403c0d
add esp, 0xc
push 0
push 0
call fcn.00403ab2
push 0
call fcn.00403c0d
fldz
add esp, 8
fstp dword [esp]
call fcn.00403980
fstp st(0)
push 0x403704
push 0x403708
push 0x43ddf0
call fcn.00403c48
add esp, 0xc
push 0
push 0
call fcn.00403daa
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor esi, esi
cmp esi, 0xc0a
jne 0x41b4f7
mov eax, 0x38d6
add dword [0x2b67604], eax
cmp dword [0x2b67604], 0xd04
jne 0x41b50b
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x33a146
jl 0x41b4e4
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 0x41b530
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41b548
cmp edi, 0xacd436
je 0x41b548
cmp ebx, 0xad1af0c
jne 0x41b551
inc esi
cmp esi, 0x8c238a18
jb 0x41b524
mov eax, dword [0x2b67604]
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_EnumCalendarInfoA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [0x2b670e8], eax
mov eax, dword [0x2b67604]
mov dword [esp + 0x14], 0x962ae8
lea esp, [esp]
cmp eax, 3
jne 0x41b5a7
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2b67604]
cmp eax, 0xd
jne 0x41b628
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 + 0x85c]
push edx
push 0
push 0x403710
push 0x403744
push 0x403780
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x40378c
push 0
lea eax, [esp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x4037bc
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov eax, dword [0x2b67604]
dec dword [esp + 0x14]
jne 0x41b590
xor esi, esi
test eax, eax
je 0x41b679
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 0x41b65e
push 0
call edi
push 0x4037f0
push 0
call ebx
call fcn.0041b1a0
mov eax, dword [0x2b67604]
cmp eax, 0x29
jne 0x41b674
call ebp
mov eax, dword [0x2b67604]
inc esi
cmp esi, eax
jb 0x41b64a
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x41b6b2
push 0x403818
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40383c
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 0x41b6bd
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x25865
mov ebp, 0x15a
cmp dword [0x2b67604], ebp
jne 0x41b6e8
push 0
call ebx
push 0
push 0
call esi
dec edi
jne 0x41b6d6
mov byte [0x43ddf0], 0
call fcn.0041ace0
call fcn.0041b430
call fcn.0041b180
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ebp, 0xdd7b3
jmp 0x41b720
cmp dword [0x2b67604], 0x21
jne 0x41b749
call esi
push 0
push 0
lea edx, [esp + 0x460]
push edx
push 0
call edi
lea eax, [esp + 0x18]
push eax
push 0x40384c
push 0
call ebx
dec ebp
jne 0x41b720
call fcn.0041b3d0
cmp dword [0x2b67604], 0x58c
mov byte [0x43ddf1], 0x73
jne 0x41b7d9
lea ecx, [esp + 0x58]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
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.00409390
add esp, 0xc
push ebp
lea eax, [esp + 0x28]
push eax
push 0x403858
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0x403860
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call fcn.0041b190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4c
ret