Function at 0x10008560
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a8c6
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0xe8cb7c]
push str..DataLocalparty.ini
mov bh, byte [eax + 8]
test bh, bh
setne bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10008637
push 0xb0
lea eax, [ebp - 0xd0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0xd0]
push 2
push str..DataLocalparty.ini
call fcn.10005800
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0
call fcn.10005750
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xcc]
call fcn.10005670
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp bl, byte [0x1000f843]
jne 0x1000866a
push str..DataLocalparty.ini
push 0xffffffffffffffff
push 0x1000fbe0
push str.party
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x1000866a
cmp byte [0x1000f098], 0
je 0x10008698
test bh, bh
mov byte [0x1000f098], 0
push str..DataLocalparty.ini
mov ecx, 0x1000c790
mov byte [0x1000f843], bl
mov eax, 0x1000c78c
cmove eax, ecx
push eax
push 0x1000fbe0
push str.party
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor esi, esi
mov edx, esi
lea ecx, [ebp - 0x134]
call fcn.100089f0
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x104]
call fcn.10008b90
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x100086d1
mov eax, dword [eax]
push str..DataLocalparty.ini
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push 0x1000c790
push eax
push str.party
call ebx
mov ecx, dword [ebp - 0xf0]
cmp ecx, 0xf
jbe 0x10008723
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008719
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100088f0
push ecx
push edx
call fcn.10009a68
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0xf
mov byte [ebp - 0x104], 0
cmp ecx, 0xf
jbe 0x1000877f
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008775
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100088f0
push ecx
push edx
call fcn.10009a68
add esp, 8
lea ecx, [ebp - 0x1c]
mov eax, 0x1000fbe0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100087a7
test dl, dl
je 0x100087a3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100087a7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008787
xor eax, eax
jmp 0x100087ac
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100088ca
mov eax, 0xe8cb7c
mov ecx, dword [eax]
cmp byte [ecx + 8], 0
je 0x100087c8
mov eax, 0x95d450
jmp 0x100087d8
mov eax, dword [0x7bc4f04]
cmp byte [eax + 0xe], 0
jne 0x100087da
mov eax, 0x95d190
call eax
mov edx, esi
lea ecx, [ebp - 0xe8]
call fcn.100089f0
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x11c]
call fcn.10008b90
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x1000880b
mov eax, dword [eax]
push str..DataLocalparty.ini
push 0x1000c41d
push eax
push str.party
call edi
mov ecx, dword [ebp - 0x108]
cmp ecx, 0xf
jbe 0x10008857
mov edx, dword [ebp - 0x11c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000884d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100088f0
push ecx
push edx
call fcn.10009a68
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0xf
mov byte [ebp - 0x11c], 0
cmp ecx, 0xf
jbe 0x100088af
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100088a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100088f0
push ecx
push edx
call fcn.10009a68
add esp, 8
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
inc esi
cmp esi, 5
jl 0x100086a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009710
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3