Function at 0x41b490
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 [0x2b75d24], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b4f9
push 0
push 0
push 0
call fcn.00403c4d
add esp, 0xc
push 0x40376c
push 0
call fcn.00403c4d
push 0
call fcn.0041acd0
fldz
add esp, 8
fstp dword [esp]
call fcn.004039f0
fstp st(0)
push 0x403778
push 0x40377c
push 0x44c510
call fcn.00403c4d
add esp, 0xc
push 0
push 0
call fcn.00403daf
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor esi, esi
cmp esi, 0xc0a
jne 0x41b514
mov eax, 0x38d6
add dword [0x2b75d24], eax
cmp dword [0x2b75d24], 0xd04
jne 0x41b528
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x33a146
jl 0x41b501
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 0x41b54d
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41b565
cmp edi, 0xacd436
je 0x41b565
cmp ebx, 0xad1af0c
jne 0x41b56e
inc esi
cmp esi, 0x8c238a18
jb 0x41b541
mov eax, dword [0x2b75d24]
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_SearchPathA]
mov dword [0x2b75808], eax
mov eax, dword [0x2b75d24]
mov dword [esp + 0x14], 0x962ae8
cmp eax, 3
jne 0x41b5bd
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2b75d24]
cmp eax, 0xd
jne 0x41b63e
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 0x403784
push 0x4037b8
push 0x4037f4
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x403800
push 0
lea eax, [esp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x403830
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov eax, dword [0x2b75d24]
dec dword [esp + 0x14]
jne 0x41b5a6
xor esi, esi
test eax, eax
je 0x41b68f
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 0x41b674
push 0
call edi
push 0x403864
push 0
call ebx
call fcn.0041b1d0
mov eax, dword [0x2b75d24]
cmp eax, 0x29
jne 0x41b68a
call ebp
mov eax, dword [0x2b75d24]
inc esi
cmp esi, eax
jb 0x41b660
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x41b6c8
push 0x40388c
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4038b0
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 0x41b6d3
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x25865
mov ebp, 0x15a
lea esp, [esp]
cmp dword [0x2b75d24], ebp
jne 0x41b702
push 0
call ebx
push 0
push 0
call esi
dec edi
jne 0x41b6f0
mov byte [0x44c510], 0
call fcn.0041ad10
call fcn.0041b460
call fcn.0041b1b0
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
cmp dword [0x2b75d24], 0x21
jne 0x41b75b
call esi
push 0
push 0
lea edx, [esp + 0x460]
push edx
push 0
call edi
lea eax, [esp + 0x18]
push eax
push 0x4038c0
push 0
call ebx
dec ebp
jne 0x41b732
call fcn.0041b400
cmp dword [0x2b75d24], 0x58c
mov byte [0x44c511], 0x73
jne 0x41b7eb
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.00409400
add esp, 0xc
push ebp
lea eax, [esp + 0x28]
push eax
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0x4038d4
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.0041b1c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4c
ret