Function at 0x4196dc
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x8ec
lea ebp, [esp - 4]
mov eax, dword [0x4300b8]
xor eax, ebp
mov dword [ebp + 0x8ec], eax
push 0xd0
mov eax, 0x41f297
call fcn.0041ea6e
mov esi, dword [ebp + 0x8f8]
and dword [ebp - 0x10], 0
mov edi, ecx
lea ecx, [ebp + 0x7c]
mov dword [ebp - 0x58], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
inc ebx
lea ecx, [ebp + 0xd0]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp + 0xb4]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp + 0x98]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 0x14], 0
cmp dword [0x43057c], 0
mov byte [ebp - 4], 4
je 0x4197b4
push str.generate_peerid_strategy
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x42277c
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [0x43057c]
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 6
call fcn.00418f82
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp + 0x98]
push eax
call fcn.0041e222
pop ecx
test al, al
jne 0x4197e8
lea eax, [ebp + 0x98]
push eax
mov ecx, edi
call fcn.00418de9
test al, al
jne 0x4197e8
push 0x4226ec
lea ecx, [ebp + 0x98]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x7ff
lea eax, [ebp + 0xed]
push 0
push eax
mov byte [ebp + 0xec], 0
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.0041a00c
add esp, 0x14
push str.pub_store.dat
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 7
call dword [0x422200]
lea ecx, [ebp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp dword [ebp + 0x40], 0x10
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 4], 8
jae 0x41983a
lea ecx, [ebp + 0x2c]
cmp dword [ebp + 0x5c], 0x10
mov eax, dword [ebp + 0x48]
jae 0x419846
lea eax, [ebp + 0x48]
push ecx
push 0x800
lea ecx, [ebp + 0xec]
push ecx
push eax
push str.computer
push str.peerid
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x419878
lea eax, [ebp + 0xec]
push eax
lea ecx, [ebp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__]
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.00418c9c
pop ecx
pop ecx
cmp dword [ebp + 0x74], 0
mov byte [ebp - 4], 9
je 0x419b9c
and dword [ebp - 0x34], 0
cmp dword [ebp + 0x78], 0x10
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x38], 0x58912317
jae 0x4198ac
lea eax, [ebp + 0x64]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp + 0x74]
push eax
call fcn.0041cb2d
add esp, 0x10
lea ecx, [ebp]
call fcn.0041a8ce
push ebx
push ebx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041c6bc
pop ecx
pop ecx
push str.serial
lea ecx, [ebp]
call fcn.0041c25e
mov ecx, eax
call fcn.0041bea3
push eax
lea ecx, [ebp + 0x7c]
call dword [0x42221c]
push 0x422760
lea ecx, [ebp]
call fcn.0041c25e
mov ecx, eax
call fcn.0041bea3
push eax
lea ecx, [ebp + 0xd0]
call dword [0x42221c]
push str.hash
lea ecx, [ebp]
call fcn.0041c25e
mov ecx, eax
call fcn.0041bea3
push eax
lea ecx, [ebp + 0xb4]
call dword [0x42221c]
cmp dword [ebp + 0xe4], 0xc
je 0x41999d
lea eax, [ebp + 0xd0]
push eax
call fcn.0041d26b
pop ecx
test al, al
jne 0x41999d
lea eax, [ebp + 0xd0]
push eax
mov ecx, edi
call fcn.00418de9
test al, al
jne 0x41999d
push str.FFFFFFFFFFFF
lea ecx, [ebp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [ebp + 0xc8], 3
je 0x4199d8
lea eax, [ebp + 0x98]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.00418fcd
push eax
lea ecx, [ebp + 0xb4]
mov byte [ebp - 4], 0xc
call dword [0x42221c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp + 0x7c]
push eax
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
pop ecx
pop ecx
test al, al
je 0x419acb
cmp dword [ebp + 0x90], 0
je 0x419acb
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.004194e5
cmp dword [ebp - 0x14], 0
jne 0x419a78
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp - 0x30]
push eax
call edi
push 0x43055c
push eax
push esi
mov byte [ebp - 4], 0xd
call edi
add esp, 0x24
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.0041a8e0
jmp 0x419cc5
add esp, 0xc
lea eax, [ebp + 0x98]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00418fcd
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xe
call edi
push 0x43055c
push eax
push esi
mov byte [ebp - 4], 0xf
call edi
mov byte [ebp - 4], 0xe
add esp, 0x18
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x54]
jmp 0x419a4d
lea eax, [ebp + 0xd0]
push eax
call fcn.0041d447
pop ecx
test al, al
je 0x419b80
lea eax, [ebp + 0x98]
push eax
lea ecx, [ebp + 0x7c]
call dword [0x42221c]
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.004194e5
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x419b3f
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp - 0x30]
push eax
call edi
push 0x43055c
push eax
push esi
mov byte [ebp - 4], 0x10
call edi
add esp, 0x18
jmp 0x419a47
lea eax, [ebp + 0x98]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00418fcd
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0x11
call edi
push 0x43055c
push eax
push esi
mov byte [ebp - 4], 0x12
call edi
mov byte [ebp - 4], 0x11
jmp 0x419ab7
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.0041a8e0
lea eax, [ebp + 0x98]
push eax
lea ecx, [ebp + 0x7c]
call dword [0x42221c]
lea eax, [ebp + 0xd0]
push eax
call fcn.0041d26b
pop ecx
test al, al
jne 0x419be0
lea eax, [ebp + 0xd0]
push eax
mov ecx, edi
call fcn.00418de9
test al, al
jne 0x419be0
push str.FFFFFFFFFFFF
lea ecx, [ebp + 0xd0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [ebp + 0xc8], 3
je 0x419c1b
lea eax, [ebp + 0x98]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.00418fcd
push eax
lea ecx, [ebp + 0xb4]
mov byte [ebp - 4], 0x13
call dword [0x42221c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.004194e5
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x419c6d
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp - 0x30]
push eax
call edi
push 0x43055c
push eax
push esi
mov byte [ebp - 4], 0x14
call edi
add esp, 0x18
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x30]
jmp 0x419cbb
lea eax, [ebp + 0x98]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00418fcd
mov edi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0x15
call edi
push 0x43055c
push eax
push esi
mov byte [ebp - 4], 0x16
call edi
add esp, 0x18
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0x15
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x98]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0xb4]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0xd0]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x7c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8ec]
xor ecx, ebp
call fcn.0041e4d2
add ebp, 0x8f0
leave
ret 4