Function at 0x40fc70
Capabilities:
Check mutex on windows
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44f568
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp]
mov edx, dword [eax + 0x44]
call edx
test eax, eax
je 0x40fcb1
mov dword [ebp + 0x18], 1
jmp 0x41009c
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0x45d9bc
push str.MainAll
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov eax, dword [ebp + 0x14]
push eax
push str.a4ed49ebc82088f65bbf5ce3c1289df9
dec ebx
push 0x45da1c
neg ebx
lea eax, [esp + 0x24]
sbb ebx, ebx
push 0x45da24
push eax
inc ebx
call fcn.00414180
add esp, 0x14
mov dword [esp + 0x40], 0
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.00423620
lea edi, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.004050a0
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410071
cmp esi, edi
je 0x410071
cmp ebx, 1
jne 0x410071
mov eax, dword [ebp + 0x14]
push eax
push ebx
push str.SType
push str.BarSwitch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, edi
jne 0x40fd8e
mov dword [ebp + 0x18], edi
jmp 0x40fd96
cmp esi, 1
jne 0x40fd96
mov dword [ebp + 0x18], esi
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov dword [esp + 0x28], edi
call edx
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
mov eax, dword [esp + 0x20]
setg bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40fffb
mov eax, dword [ebp + 0x14]
push eax
push 0x45b7b0
push 0x45b684
lea ecx, [esp + 0x28]
push str.BarSwitch
push ecx
call fcn.00414180
add esp, 0x14
mov byte [esp + 0x40], 2
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x45b608
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
mov byte [esp + 0x48], 3
push edx
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
call fcn.00404b40
lea edi, [esp + 0x14]
mov byte [esp + 0x40], 4
call fcn.004050a0
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov ecx, 0x45b7b0
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fe9a
test dx, dx
je 0x40fe96
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fe9a
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fe74
xor eax, eax
jmp 0x40fe9f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x40ffa8
lea esi, [esp + 0x2c]
call fcn.00423620
lea edi, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.004050a0
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fee8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0x40], 6
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40ff79
mov edi, dword [esp + 0x14]
push eax
push edi
call fcn.004248c8
add esp, 8
test eax, eax
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x30]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40ff83
push 0x45b608
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x2c]
call fcn.00404b40
lea edi, [esp + 0x14]
mov byte [esp + 0x40], 7
call fcn.004050a0
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x34]
jmp 0x40fe4d
push 0x80004005
call fcn.00401960
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40ff94
mov dword [ebp + 0x18], 1
jmp 0x40ffa0
cmp eax, 1
jne 0x40ffa0
mov dword [ebp + 0x18], 0
mov dword [esp + 0x24], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 0
jne 0x410074
mov esi, dword [esp + 0x28]
xor edi, edi
mov eax, dword [ebp + 0x14]
push eax
push 0x45b7b0
push 0x45b7ac
lea ecx, [esp + 0x34]
push str.BarSwitch
push ecx
call fcn.00414180
mov byte [esp + 0x54], 8
mov edx, dword [0x470198]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00414270
add esp, 0x1c
test eax, eax
je 0x41004a
cmp esi, edi
jne 0x410042
mov dword [ebp + 0x18], 1
jmp 0x41004a
cmp esi, 1
jne 0x41004a
mov dword [ebp + 0x18], edi
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410074
mov dword [ebp + 0x18], edi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41009c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret