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

Disassembly:
mov eax, 0x1bbc
call fcn.00411d80
cmp dword [0x2b75ce4], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b59d
push 0
push 0
push 0
call fcn.00403f3d
add esp, 0xc
push 0x40365c
push 0
call fcn.00403f3d
push 0
call fcn.00403c9d
add esp, 0xc
push 0
push 0
call fcn.00403b44
push 0
call fcn.00403c9d
fldz
add esp, 8
fstp dword [esp]
call fcn.00403a00
fstp st(0)
push 0x403668
push 0x40366c
push 0x44c4d0
call fcn.00403f3d
add esp, 0xc
push 0
push 0
call fcn.0040409f
push 0
push 0
push 0
push 0
call fcn.00403dbc
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor esi, esi
cmp esi, 0xc0a
jne 0x41b5b8
mov eax, 0x38d6
add dword [0x2b75ce4], eax
cmp dword [0x2b75ce4], 0xd04
jne 0x41b5cc
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x33a146
jl 0x41b5a5
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 0x41b5f1
push 0
call edi
cmp esi, 0x1ea070f3
jle 0x41b609
cmp ebx, 0xacd436
je 0x41b609
cmp ebp, 0xad1af0c
jne 0x41b614
inc esi
cmp esi, 0x8c238a18
jb 0x41b5e5
jmp 0x41b621
cmp dword [0x2b75ce4], 0x28
jne 0x41b621
push 0
call edi
mov eax, dword [0x2b75ce4]
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_SearchPathW]
mov dword [0x2b757c8], eax
mov eax, dword [0x2b75ce4]
mov dword [esp + 0x14], 0x962ae8
lea esp, [esp]
cmp eax, 3
jne 0x41b67a
lea ecx, [esp + 0x178]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2b75ce4]
cmp eax, 0xd
jne 0x41b6fe
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 + 0x3cc]
push eax
push 0
call ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xbcc]
push edx
push 0
push 0x403674
push 0x4036c8
push 0x403768
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x40368c
push 0
lea eax, [esp + 0x13d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x403734
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov eax, dword [0x2b75ce4]
dec dword [esp + 0x14]
jne 0x41b660
xor esi, esi
test eax, eax
je 0x41b740
mov edi, dword [sym.imp.KERNEL32.dll__lclose]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ebx, [ebx]
cmp eax, 0xfe
jne 0x41b731
push 0
call edi
push 0
push 0
call ebx
call fcn.0041b240
mov eax, dword [0x2b75ce4]
inc esi
cmp esi, eax
jb 0x41b720
cmp eax, 0x19c
jne 0x41b789
push 0x4037d4
call dword [sym.imp.KERNEL32.dll_AddAtomW]
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 0x403814
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0x403824
push 0x403854
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x41b794
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x25865
mov ebp, 0x15a
cmp dword [0x2b75ce4], ebp
jne 0x41b7c5
push 0
call esi
push 0
push 0
call edi
dec ebx
jne 0x41b7b3
mov byte [0x44c4d0], bl
call fcn.0041ad80
call fcn.0041b4e0
call fcn.0041b220
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x14], 0xdd7b3
lea ecx, [ecx]
cmp dword [0x2b75ce4], 0x21
jne 0x41b82d
call esi
push 0
push 0
lea edx, [esp + 0x13d0]
push edx
push 0
call edi
lea eax, [esp + 0x18]
push eax
push 0x40388c
push 0
call ebx
push 0
call ebp
dec dword [esp + 0x14]
jne 0x41b800
call fcn.0041b480
cmp dword [0x2b75ce4], 0x58c
mov byte [0x44c4d1], 0x73
jne 0x41b8e9
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x178]
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 0x403898
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.004080d0
add esp, 0xc
push 0
lea eax, [esp + 0x28]
push eax
push 0x4038ac
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0x4038b4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call fcn.0041b230
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1bbc
ret