Function at 0x41b320
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:
sub esp, 0x844
cmp dword [0x2b675a4], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b3ba
push 0
push 0
push 0
call fcn.0040423d
add esp, 0xc
push 0x403608
push 0
call fcn.0040423d
push 0
call fcn.00404202
add esp, 0xc
push 0
push 0
call fcn.00403954
push 0
call fcn.00404202
fldz
add esp, 8
fstp dword [esp]
call fcn.00403810
fstp st(0)
push 0x403614
push 0x403618
push 0x43dd90
call fcn.0040423d
add esp, 0xc
push 0
call fcn.00403aec
add esp, 4
push 0
push 0
push 0
call fcn.00404171
add esp, 0xc
push 0
push 0
push 0
call fcn.00403eb5
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentActCtx]
xor esi, esi
cmp esi, 0xff2
jne 0x41b3d5
mov eax, 0x38d6
add dword [0x2b675a4], eax
cmp dword [0x2b675a4], 0x534
jne 0x41b3e5
push 0
call edi
inc esi
cmp esi, 0x321aa6
jl 0x41b3c2
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov edi, edi
cmp esi, 0x1c275
jge 0x41b40c
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41b424
cmp edi, 0xacd436
je 0x41b424
cmp ebx, 0xad1af0c
jne 0x41b42d
inc esi
cmp esi, 0x8c238a18
jb 0x41b400
mov eax, dword [0x2b675a4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
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_SearchPathA]
mov dword [0x2b67088], eax
mov eax, dword [0x2b675a4]
mov dword [esp + 0x10], 0x962ae8
cmp eax, 3
jne 0x41b47c
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x2b675a4]
cmp eax, 0xd
jne 0x41b4e3
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 + 0x454]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0
push 0
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov eax, dword [0x2b675a4]
dec dword [esp + 0x10]
jne 0x41b465
xor esi, esi
test eax, eax
je 0x41b524
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
cmp eax, 0xfe
jne 0x41b515
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.0041b060
mov eax, dword [0x2b675a4]
inc esi
cmp esi, eax
jb 0x41b500
cmp eax, 0x19c
jne 0x41b564
push 0x403620
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_LoadMenuW]
mov esi, 0x8dc
nop
push 0
push 0
call edi
dec esi
jne 0x41b570
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 [0x2b675a4], ebp
jne 0x41b5a2
push 0
call esi
push 0
push 0
call edi
dec ebx
jne 0x41b590
mov byte [0x43dd90], bl
call fcn.0041aba0
call fcn.0041b2f0
call fcn.0041b040
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
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 [0x2b675a4], 0x21
jne 0x41b60c
push 0
push 0
push 0
call esi
push 0
push 0
lea eax, [esp + 0x458]
push eax
push 0
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
call ebp
dec dword [esp + 0x10]
jne 0x41b5e0
call fcn.0041b290
cmp dword [0x2b675a4], 0x58c
mov byte [0x43dd91], 0x73
jne 0x41b6c5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea edx, [esp + 0x450]
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_EnumResourceTypesW]
push 0x403634
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.0040acb0
add esp, 0xc
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push 0x403650
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_GetCPInfoExW]
call fcn.0041b050
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x844
ret