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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000afa6
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10010040]
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 0x10008cf7
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.10005ae0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0
call fcn.10005a30
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.10005950
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 [0x10010843]
jne 0x10008d2a
push str..DataLocalparty.ini
push 0xffffffffffffffff
push 0x10010be0
push str.party
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x10008d2a
cmp byte [0x10010098], 0
je 0x10008d58
test bh, bh
mov byte [0x10010098], 0
push str..DataLocalparty.ini
mov ecx, 0x1000d7b8
mov byte [0x10010843], bl
mov eax, 0x1000d7b4
cmove eax, ecx
push eax
push 0x10010be0
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.100090b0
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x104]
call fcn.10009250
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10008d91
mov eax, dword [eax]
push str..DataLocalparty.ini
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push 0x1000d7b8
push eax
push str.party
call ebx
mov ecx, dword [ebp - 0xf0]
cmp ecx, 0xf
jbe 0x10008de3
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008dd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008fb0
push ecx
push edx
call fcn.1000a108
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 0x10008e3f
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008e35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008fb0
push ecx
push edx
call fcn.1000a108
add esp, 8
lea ecx, [ebp - 0x1c]
mov eax, 0x10010be0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008e67
test dl, dl
je 0x10008e63
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008e67
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008e47
xor eax, eax
jmp 0x10008e6c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10008f8a
mov eax, 0xe8cb7c
mov ecx, dword [eax]
cmp byte [ecx + 8], 0
je 0x10008e88
mov eax, 0x95d450
jmp 0x10008e98
mov eax, dword [0x7bc4f04]
cmp byte [eax + 0xe], 0
jne 0x10008e9a
mov eax, 0x95d190
call eax
mov edx, esi
lea ecx, [ebp - 0xe8]
call fcn.100090b0
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x11c]
call fcn.10009250
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10008ecb
mov eax, dword [eax]
push str..DataLocalparty.ini
push 0x1000d42d
push eax
push str.party
call edi
mov ecx, dword [ebp - 0x108]
cmp ecx, 0xf
jbe 0x10008f17
mov edx, dword [ebp - 0x11c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008f0d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008fb0
push ecx
push edx
call fcn.1000a108
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 0x10008f6f
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008f65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008fb0
push ecx
push edx
call fcn.1000a108
add esp, 8
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
inc esi
cmp esi, 5
jl 0x10008d60
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.10009db0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3