Function at 0x80f840
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x848788
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x85f690]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push edi
mov eax, dword [0x85f690]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
push 0x8c
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.0081b4e1
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esp + 0x438], ebx
mov dword [esi], vtable.CLoginDlg.0
mov dword [esi + 0x74], vtable.CLoginDlg.1.0
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.008020e0
add eax, 0x10
add esp, 4
mov dword [esi + 0x11c], eax
lea edi, [esi + 0x120]
push edi
mov byte [esp + 0x43c], 1
call fcn.00811090
push str.minimize
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 2
mov ebp, 0x8109a0
call fcn.008121e0
push eax
mov byte [esp + 0x43c], 3
call fcn.00810e80
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov byte [esp + 0x438], 2
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 0x80f931
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.exitgame
lea ecx, [esp + 0x18]
mov ebx, 0x8109f0
xor ebp, ebp
call fcn.008121e0
push eax
mov byte [esp + 0x43c], 4
call fcn.00810e80
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov byte [esp + 0x438], 2
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 0x80f981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.restart
lea ecx, [esp + 0x18]
mov ebx, 0x810a10
xor ebp, ebp
call fcn.008121e0
push eax
mov byte [esp + 0x43c], 5
call fcn.00810e80
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov byte [esp + 0x438], 2
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 0x80f9d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.loadgame
lea ecx, [esp + 0x18]
mov ebx, 0x810a40
xor ebp, ebp
call fcn.008121e0
push eax
mov byte [esp + 0x43c], 6
call fcn.00810e80
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov byte [esp + 0x438], 2
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 0x80fa21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22e]
push edx
mov word [esp + 0x230], cx
call fcn.00834280
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.00834280
mov ebx, dword [esi + 0x11c]
add esp, 0xc
lea edi, [esp + 0x224]
call fcn.008057f0
mov edx, edi
push edx
push 0x104
lea eax, [esp + 0x24]
push eax
push ebx
push str.WebPage
push str.Sjsg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x80fab6
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x80fa96
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x11c]
call fcn.00802000
mov eax, esi
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.008321db
add esp, 0x42c
ret