Function at 0x414159
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x8ec
lea ebp, [esp - 4]
mov eax, dword [0x4313f4]
xor eax, ebp
mov dword [ebp + 0x8ec], eax
push 0xd0
mov eax, 0x41c9c1
call fcn.004127a4
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 [0x432dac], 0
mov byte [ebp - 4], 4
je 0x414231
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 0x428a88
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 [0x432dac]
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 6
call fcn.004139ad
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.0041a083
pop ecx
test al, al
jne 0x414265
lea eax, [ebp + 0x98]
push eax
mov ecx, edi
call fcn.00413811
test al, al
jne 0x414265
push 0x4289f8
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.00414ac1
add esp, 0x14
push str.pub_store.dat
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 7
call dword [0x41e280]
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 0x4142b7
lea ecx, [ebp + 0x2c]
cmp dword [ebp + 0x5c], 0x10
mov eax, dword [ebp + 0x48]
jae 0x4142c3
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 0x4142f5
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.004136be
pop ecx
pop ecx
cmp dword [ebp + 0x74], 0
mov byte [ebp - 4], 9
je 0x414619
and dword [ebp - 0x34], 0
cmp dword [ebp + 0x78], 0x10
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x38], 0x58912317
jae 0x414329
lea eax, [ebp + 0x64]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp + 0x74]
push eax
call fcn.004186b5
add esp, 0x10
lea ecx, [ebp]
call fcn.00415a6e
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.00418244
pop ecx
pop ecx
push str.serial
lea ecx, [ebp]
call fcn.00417c35
mov ecx, eax
call fcn.004176d2
push eax
lea ecx, [ebp + 0x7c]
call dword [0x41e2c0]
push 0x428a6c
lea ecx, [ebp]
call fcn.00417c35
mov ecx, eax
call fcn.004176d2
push eax
lea ecx, [ebp + 0xd0]
call dword [0x41e2c0]
push str.hash
lea ecx, [ebp]
call fcn.00417c35
mov ecx, eax
call fcn.004176d2
push eax
lea ecx, [ebp + 0xb4]
call dword [0x41e2c0]
cmp dword [ebp + 0xe4], 0xc
je 0x41441a
lea eax, [ebp + 0xd0]
push eax
call fcn.00419042
pop ecx
test al, al
jne 0x41441a
lea eax, [ebp + 0xd0]
push eax
mov ecx, edi
call fcn.00413811
test al, al
jne 0x41441a
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 0x414455
lea eax, [ebp + 0x98]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.00413a15
push eax
lea ecx, [ebp + 0xb4]
mov byte [ebp - 4], 0xc
call dword [0x41e2c0]
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 0x414548
cmp dword [ebp + 0x90], 0
je 0x414548
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00413f62
cmp dword [ebp - 0x14], 0
jne 0x4144f5
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 0x432d8c
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.00415a80
jmp 0x414742
add esp, 0xc
lea eax, [ebp + 0x98]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00413a15
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 0x432d8c
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 0x4144ca
lea eax, [ebp + 0xd0]
push eax
call fcn.0041921e
pop ecx
test al, al
je 0x4145fd
lea eax, [ebp + 0x98]
push eax
lea ecx, [ebp + 0x7c]
call dword [0x41e2c0]
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0xd0]
push eax
lea eax, [ebp + 0x7c]
push eax
call fcn.00413f62
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x4145bc
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 0x432d8c
push eax
push esi
mov byte [ebp - 4], 0x10
call edi
add esp, 0x18
jmp 0x4144c4
lea eax, [ebp + 0x98]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00413a15
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 0x432d8c
push eax
push esi
mov byte [ebp - 4], 0x12
call edi
mov byte [ebp - 4], 0x11
jmp 0x414534
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.00415a80
lea eax, [ebp + 0x98]
push eax
lea ecx, [ebp + 0x7c]
call dword [0x41e2c0]
lea eax, [ebp + 0xd0]
push eax
call fcn.00419042
pop ecx
test al, al
jne 0x41465d
lea eax, [ebp + 0xd0]
push eax
mov ecx, edi
call fcn.00413811
test al, al
jne 0x41465d
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 0x414698
lea eax, [ebp + 0x98]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.00413a15
push eax
lea ecx, [ebp + 0xb4]
mov byte [ebp - 4], 0x13
call dword [0x41e2c0]
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.00413f62
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x4146ea
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 0x432d8c
push eax
push esi
mov byte [ebp - 4], 0x14
call edi
add esp, 0x18
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x30]
jmp 0x414738
lea eax, [ebp + 0x98]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00413a15
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 0x432d8c
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.0041276a
add ebp, 0x8f0
leave
ret 4