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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f2b3
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x451530]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x451530]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
mov edi, ecx
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0040b7d7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00428d02
mov ecx, dword [edi + 0x48]
add esp, 4
push ecx
lea ecx, [esp + 0x18]
call fcn.00401ed0
mov dword [esp + 0x140], 0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x40189a
push 0xff
push eax
mov byte [esp + 0x34], al
lea eax, [esp + 0x35]
push eax
call fcn.0042afc0
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00401310
push str.Platform.ini
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x14c], 1
call fcn.004020c0
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x445d9b
push str.LobbyClass
push str.Platform
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
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 0x4017a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x140], 0
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 0x4017cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
push 1
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017f1
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40189a
push 0x40
push 0x445e14
push 0x445e20
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call fcn.00411967
mov esi, eax
test esi, esi
je 0x401868
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x401844
push 9
mov ecx, esi
call fcn.0040e856
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push eax
call fcn.00411967
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401977
push 0
call fcn.0040d6f4
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.AutoUpdate
mov ecx, edi
call fcn.0040c760
push edi
call fcn.00401bf0
test al, al
jne 0x4018ff
push 0
push 0x10
push 0x445e3c
call fcn.0040c3a8
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401977
push 0x2ec
call fcn.0040a6c2
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x140], 2
test eax, eax
je 0x401924
push eax
call fcn.004036a0
jmp 0x401926
xor eax, eax
mov byte [esp + 0x140], 0
mov dword [edi + 0xa4], eax
mov dword [edi + 0x20], eax
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 0x13c]
push 0x66
call eax
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004286dd
mov esp, ebp
pop ebp
ret