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

Disassembly:
push 0xffffffffffffffff
push 0x4096b9
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x40d1f8]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x40d500
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x3c], edi
push str.FileMutex_GuPM
xor ebx, ebx
push 1
push ebx
mov dword [esp + 0x280], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
mov dword [esp + 0x2c], ebp
cmp ebp, ebx
jne 0x407b5c
lea eax, [edi - 0x10]
jmp 0x407faa
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 4]
lea edi, [esi + 0x2c]
push edx
mov ecx, edi
call fcn.00405e30
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [edi + 0x18]
push 0x19000
mov dword [eax + 8], eax
call fcn.0040863a
mov ebx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2c], ebx
call fcn.004031b0
push str.dataguprocessm.dat
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x288], 1
call fcn.00403870
mov eax, dword [eax]
add esp, 0x14
push eax
push HeapSize
push ebx
push 0x40aa08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407bf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x274], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x40d500]
mov eax, dword [edx + 0xc]
mov ecx, 0x40d500
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x274], 2
cmp esi, 0xc7fe
je 0x407f6b
lea ecx, [esp + 0x48]
call fcn.00405190
lea ecx, [esp + 0x48]
push ecx
push esi
push ebx
mov byte [esp + 0x280], 3
call fcn.004079a0
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
add esp, 0xc
sar eax, 2
xor ebp, ebp
mov dword [esp + 0x38], eax
test eax, eax
jle 0x407f4b
lea edx, [esp + 0x28]
push edx
call fcn.004031b0
push str.dataguprocessm.dat
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x284], 4
call fcn.00403870
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x64]
mov esi, dword [eax]
sar ecx, 2
add esp, 0x10
cmp ebp, ecx
jb 0x407cbd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x54]
mov eax, dword [edx + ebp*4]
push esi
push 0x104
lea ecx, [esp + 0x68]
push ecx
push 0x40aa04
push eax
push 0x40aa08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407d00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x274], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x40d500]
mov eax, dword [edx + 0xc]
mov ecx, 0x40d500
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [0x40d500]
mov eax, dword [edx + 0xc]
mov ecx, 0x40d500
mov byte [esp + 0x274], 5
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
mov byte [esp + 0x274], 6
sar ecx, 2
cmp ebp, ecx
jb 0x407d7b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x54]
lea eax, [edx + ebp*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403950
lea eax, [esp + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d93
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401630
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
mov esi, dword [esp + 0x14]
je 0x407ddd
cmp dword [esi - 0xc], 0
je 0x407ddd
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00406a20
lea edx, [esp + 0x14]
push edx
mov ecx, eax
call fcn.00403950
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push 0x40a9f0
push ecx
mov byte [esp + 0x280], 7
call fcn.00405ae0
push 0x40a9ec
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x28c], 8
call fcn.00403870
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x298], 9
call fcn.00405a10
add esp, 0x24
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 0xa
call fcn.00403950
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x274], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x274], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x274], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ecc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x274], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x274], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x274], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, dword [esp + 0x38]
jl 0x407c81
mov ebx, dword [esp + 0x24]
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0x274], 2
call fcn.004069a0
mov ebp, dword [esp + 0x2c]
jmp 0x407f74
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x274], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x274], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004086bc
add esp, 0x264
ret