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

Disassembly:
mov eax, 0x13d4
call fcn.00416990
cmp dword [0x2b67504], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b565
push 0
push 0
push 0
call fcn.00403dfb
add esp, 0xc
push 0x40360c
push 0
call fcn.00403dfb
push 0
call fcn.00403dc0
add esp, 0xc
push 0
push 0
call fcn.00403b1a
push 0
call fcn.00403dc0
fldz
add esp, 8
fstp dword [esp]
call fcn.004039d0
fstp st(0)
push 0x403618
push 0x40361c
push 0x43dcf0
call fcn.00403dfb
add esp, 0xc
push 0
call fcn.00403d2c
add esp, 4
push 0
push 0
push 0
push 0
call fcn.0040424b
push 0
call fcn.00403b92
add esp, 0x14
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentActCtx]
xor esi, esi
lea ecx, [ecx]
cmp esi, 0xff2
jne 0x41b583
mov eax, 0x38d6
add dword [0x2b67504], eax
cmp dword [0x2b67504], 0x534
jne 0x41b593
push 0
call edi
inc esi
cmp esi, 0x321aa6
jl 0x41b570
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea esp, [esp]
cmp esi, 0x1c275
jge 0x41b5bc
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41b5d4
cmp edi, 0xacd436
je 0x41b5d4
cmp ebx, 0xad1af0c
jne 0x41b5dd
inc esi
cmp esi, 0x8c238a18
jb 0x41b5b0
mov eax, dword [0x2b67504]
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_EnumCalendarInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathW]
mov dword [0x2b66fe8], eax
mov eax, dword [0x2b67504]
mov dword [esp + 0x10], 0x962ae8
cmp eax, 3
jne 0x41b62c
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x2b67504]
cmp eax, 0xd
jne 0x41b6a2
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
push 0
call ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3e4]
push eax
push 0
push 0x403624
push 0x403640
push 0x4036b0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x40371c
push 0
lea ecx, [esp + 0xbe8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov eax, dword [0x2b67504]
dec dword [esp + 0x10]
jne 0x41b615
xor esi, esi
test eax, eax
je 0x41b6e4
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, edi
cmp eax, 0xfe
jne 0x41b6d5
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.0041b210
mov eax, dword [0x2b67504]
inc esi
cmp esi, eax
jb 0x41b6c0
cmp eax, 0x19c
jne 0x41b724
push 0x403758
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 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, 0x8dc
nop
push 0
push 0
call edi
dec esi
jne 0x41b730
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x25865
mov ebp, 0x15a
nop
cmp dword [0x2b67504], ebp
jne 0x41b762
push 0
call esi
push 0
push 0
call edi
dec ebx
jne 0x41b750
mov byte [0x43dcf0], bl
call fcn.0041ad50
call fcn.0041b4a0
call fcn.0041b1f0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x10], 0xdd7b3
lea ebx, [ebx]
cmp dword [0x2b67504], 0x21
jne 0x41b7cc
push 0
push 0
push 0
call esi
push 0
push 0
lea eax, [esp + 0xbe8]
push eax
push 0
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
call ebp
dec dword [esp + 0x10]
jne 0x41b7a0
call fcn.0041b440
cmp dword [0x2b67504], 0x58c
mov byte [0x43dcf1], 0x73
jne 0x41b885
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea edx, [esp + 0x190]
push edx
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 0x403798
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0x30
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.0040b930
add esp, 0xc
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0x4037b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 0x50]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call fcn.0041b200
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13d4
ret