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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000af36
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 0x10008c87
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 [0x1000f843]
jne 0x10008cba
push str..DataLocalparty.ini
push 0xffffffffffffffff
push 0x1000fbe0
push str.party
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x10008cba
cmp byte [0x1000f098], 0
je 0x10008ce8
test bh, bh
mov byte [0x1000f098], 0
push str..DataLocalparty.ini
mov ecx, 0x1000c7ac
mov byte [0x1000f843], bl
mov eax, 0x1000c7a8
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.10009040
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x104]
call fcn.100091e0
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10008d21
mov eax, dword [eax]
push str..DataLocalparty.ini
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push 0x1000c7ac
push eax
push str.party
call ebx
mov ecx, dword [ebp - 0xf0]
cmp ecx, 0xf
jbe 0x10008d73
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008d69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008f40
push ecx
push edx
call fcn.1000a098
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 0x10008dcf
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008dc5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008f40
push ecx
push edx
call fcn.1000a098
add esp, 8
lea ecx, [ebp - 0x1c]
mov eax, 0x1000fbe0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008df7
test dl, dl
je 0x10008df3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008df7
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008dd7
xor eax, eax
jmp 0x10008dfc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10008f1a
mov eax, 0xe8cb7c
mov ecx, dword [eax]
cmp byte [ecx + 8], 0
je 0x10008e18
mov eax, 0x95d450
jmp 0x10008e28
mov eax, dword [0x7bc4f04]
cmp byte [eax + 0xe], 0
jne 0x10008e2a
mov eax, 0x95d190
call eax
mov edx, esi
lea ecx, [ebp - 0xe8]
call fcn.10009040
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x11c]
call fcn.100091e0
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10008e5b
mov eax, dword [eax]
push str..DataLocalparty.ini
push 0x1000c42d
push eax
push str.party
call edi
mov ecx, dword [ebp - 0x108]
cmp ecx, 0xf
jbe 0x10008ea7
mov edx, dword [ebp - 0x11c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008e9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008f40
push ecx
push edx
call fcn.1000a098
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 0x10008eff
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008ef5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008f40
push ecx
push edx
call fcn.1000a098
add esp, 8
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
inc esi
cmp esi, 5
jl 0x10008cf0
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.10009d40
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3