Function at 0x4644a5
Capabilities:
Read .ini file
Reference cloudflare dns server

Disassembly:
mov eax, 0x4b157b
call fcn.0049f0d0
sub esp, 0x760
mov eax, dword [0x4f0dd0]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x748], ecx
mov ecx, dword [ebp + 0x10]
xor eax, ebp
mov dword [ebp - 0x740], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74c], ecx
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x744], ecx
jne 0x464510
push 0x104
lea eax, [ebp - 0x520]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp - 0x520]
lea edi, [esi + 0x88]
mov ecx, edi
push eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x74c], ebx
lea ecx, [esi + 0xdc]
jne 0x464536
push edi
call dword [0x4b743c]
jmp 0x464542
push dword [ebp - 0x74c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov edi, 0x103
push edi
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x318]
push eax
lea ecx, [esi + 0x6c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x744], ebx
lea ecx, [esi + 0xf8]
jne 0x46457b
push str.1.0.0.1
jmp 0x464581
push dword [ebp - 0x744]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x748], ebx
lea ecx, [esi + 0x150]
jne 0x46459e
lea eax, [ebp - 0x318]
push eax
jmp 0x4645a4
push dword [ebp - 0x748]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x740], ebx
je 0x4645c4
push dword [ebp - 0x740]
lea ecx, [esi + 0x16c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esi + 0x2c]
cmp eax, 1
jae 0x464602
push edi
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00462845
add esp, 0xc
lea eax, [ebp - 0x520]
lea edi, [esi + 0x18]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.Crash_
mov ecx, edi
call dword [0x4b7454]
lea eax, [esi + 0x18]
push str.crashinfo.ini
push eax
lea eax, [ebp - 0x73c]
push eax
call fcn.00406b0a
add esp, 0xc
cmp dword [ebp - 0x724], 8
mov eax, dword [ebp - 0x738]
mov dword [ebp - 4], ebx
jae 0x464632
lea eax, [ebp - 0x738]
push eax
push 0x100
lea eax, [ebp - 0x720]
push eax
push ebx
push str.peerid
push str.local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call dword [0x4ed0e0]
mov dword [ebp - 0x740], eax
lea eax, [ebp - 0x720]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0049f1f0
mov eax, esp
push dword [ebp - 0x740]
lea ecx, [ebp - 0x720]
push edi
push ecx
push eax
call fcn.00462133
push eax
lea ecx, [esi + 0x114]
call dword [sym.imp.MSVCP71.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__]
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.MSVCR71.dll_time]
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.MSVCR71.dll_localtime]
push eax
push 0x4c44c0
lea eax, [ebp - 0x110]
push 0x80
push eax
call dword [sym.imp.MSVCR71.dll_wcsftime]
lea eax, [ebp - 0x110]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x76c]
push eax
call fcn.00406b0a
add esp, 0x24
push eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call dword [0x4b743c]
lea ecx, [ebp - 0x76c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [esi + 6], bl
je 0x464710
call fcn.00401095
cmp byte [esi + 7], bl
je 0x46471a
call fcn.00401095
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x464729
push 2
pop ebx
jmp 0x464764
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call edi
or eax, 2
push eax
call edi
call fcn.00490014
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.00490366
push 0x464323
push 0x4fa2bc
call fcn.0049071a
call fcn.00490712
mov ecx, esi
call fcn.004628d9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x73c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, ebx
lea esp, [ebp - 0x778]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f127
leave
ret 0x14