Function at 0x41b360
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, 0xc44
cmp dword [0x2b675c4], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b3fa
push 0
push 0
push 0
call fcn.0040427d
add esp, 0xc
push 0x403608
push 0
call fcn.0040427d
push 0
call fcn.00404242
add esp, 0xc
push 0
push 0
call fcn.0040399a
push 0
call fcn.00404242
fldz
add esp, 8
fstp dword [esp]
call fcn.00403850
fstp st(0)
push 0x403614
push 0x403618
push 0x43ddb0
call fcn.0040427d
add esp, 0xc
push 0
call fcn.00403b2c
add esp, 4
push 0
push 0
push 0
call fcn.004041b1
add esp, 0xc
push 0
push 0
push 0
call fcn.00403ef5
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentActCtx]
xor esi, esi
cmp esi, 0xff2
jne 0x41b415
mov eax, 0x38d6
add dword [0x2b675c4], eax
cmp dword [0x2b675c4], 0x534
jne 0x41b425
push 0
call edi
inc esi
cmp esi, 0x321aa6
jl 0x41b402
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 0x41b44c
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41b464
cmp edi, 0xacd436
je 0x41b464
cmp ebx, 0xad1af0c
jne 0x41b46d
inc esi
cmp esi, 0x8c238a18
jb 0x41b440
mov eax, dword [0x2b675c4]
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_SearchPathA]
mov dword [0x2b670a8], eax
mov eax, dword [0x2b675c4]
mov dword [esp + 0x10], 0x962ae8
cmp eax, 3
jne 0x41b4bc
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x2b675c4]
cmp eax, 0xd
jne 0x41b523
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 [0x2b675c4]
dec dword [esp + 0x10]
jne 0x41b4a5
xor esi, esi
test eax, eax
je 0x41b564
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
cmp eax, 0xfe
jne 0x41b555
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.0041b0a0
mov eax, dword [0x2b675c4]
inc esi
cmp esi, eax
jb 0x41b540
cmp eax, 0x19c
jne 0x41b5a4
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 0x41b5b0
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 [0x2b675c4], ebp
jne 0x41b5e2
push 0
call esi
push 0
push 0
call edi
dec ebx
jne 0x41b5d0
mov byte [0x43ddb0], bl
call fcn.0041abe0
call fcn.0041b330
call fcn.0041b080
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 [0x2b675c4], 0x21
jne 0x41b64c
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 0x41b620
call fcn.0041b2d0
cmp dword [0x2b675c4], 0x58c
mov byte [0x43ddb1], 0x73
jne 0x41b705
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.0040acf0
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.0041b090
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc44
ret