Function at 0x41b530
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Enumerate gui resources
Get common file path
Get file attributes
Get hostname
Manipulate console buffer
Read .ini file
Terminate process

Disassembly:
mov eax, 0x104c
call fcn.00411d90
cmp dword [0x2b67604], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b5bd
push 0
push 0
push 0
call fcn.00403f4d
add esp, 0xc
push 0x403718
push 0
call fcn.00403f4d
push 0
call fcn.00403cad
add esp, 0xc
push 0
push 0
call fcn.00403b58
push 0
call fcn.00403cad
fldz
add esp, 8
fstp dword [esp]
call fcn.00403a20
fstp st(0)
push 0x403724
push 0x403728
push 0x43ddf0
call fcn.00403f4d
add esp, 0xc
push 0
push 0
call fcn.004040af
push 0
push 0
push 0
push 0
call fcn.00403dcc
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor esi, esi
cmp esi, 0xc0a
jne 0x41b5d8
mov eax, 0x38d6
add dword [0x2b67604], eax
cmp dword [0x2b67604], 0xd04
jne 0x41b5ec
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x33a146
jl 0x41b5c5
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c275
jge 0x41b611
push 0
call edi
cmp esi, 0x1ea070f3
jle 0x41b629
cmp ebx, 0xacd436
je 0x41b629
cmp ebp, 0xad1af0c
jne 0x41b634
inc esi
cmp esi, 0x8c238a18
jb 0x41b605
jmp 0x41b641
cmp dword [0x2b67604], 0x28
jne 0x41b641
push 0
call edi
mov eax, dword [0x2b67604]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
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 0x41b697
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2b67604]
cmp eax, 0xd
jne 0x41b718
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 + 0x85c]
push eax
push 0
call ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c]
push edx
push 0
push 0x403730
push 0x403764
push 0x4037a0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x4037ac
push 0
lea eax, [esp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x4037dc
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov eax, dword [0x2b67604]
dec dword [esp + 0x14]
jne 0x41b680
xor esi, esi
test eax, eax
je 0x41b754
mov edi, dword [sym.imp.KERNEL32.dll__lclose]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 0xfe
jne 0x41b745
push 0
call edi
push 0
push 0
call ebx
call fcn.0041b260
mov eax, dword [0x2b67604]
inc esi
cmp esi, eax
jb 0x41b734
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x41b79f
push 0x403810
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x403834
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x403844
push 0x403874
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, 0x8dc
lea ebx, [ebx]
push 0
push 0
call edi
dec esi
jne 0x41b7b0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x25865
mov ebp, 0x15a
lea esp, [esp]
cmp dword [0x2b67604], ebp
jne 0x41b7e2
push 0
call ebx
push 0
push 0
call esi
dec edi
jne 0x41b7d0
mov byte [0x43ddf0], 0
call fcn.0041ada0
call fcn.0041b500
call fcn.0041b240
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, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x14], 0xdd7b3
jmp 0x41b820
cmp dword [0x2b67604], 0x21
jne 0x41b84d
call esi
push 0
push 0
lea edx, [esp + 0x460]
push edx
push 0
call edi
lea eax, [esp + 0x18]
push eax
push 0x4038ac
push 0
call ebx
push 0
call ebp
dec dword [esp + 0x14]
jne 0x41b820
call fcn.0041b4a0
cmp dword [0x2b67604], 0x58c
mov byte [0x43ddf1], 0x73
jne 0x41b8fa
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0x4038b8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0x30
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x30], 0
call fcn.00408070
add esp, 0xc
push 0
lea eax, [esp + 0x28]
push eax
push 0x4038cc
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0x4038d4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call fcn.0041b250
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104c
ret