Function at 0x4156a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46492a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x48700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
xor eax, eax
mov dword [ebp - 0x58], edi
lea ecx, [edi + 4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ecx
call dword [sym.imp.brbase.dll_protected:_void___thiscall_base::subtle::RefCountedThreadSafeBase::constructor_void_]
mov dword [ebp - 4], 0
lea esi, [edi + 0xc]
mov dword [edi], vtable.bonree::ProtoManage.0
mov word [edi + 8], 0
mov dword [ebp - 0x48], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041ddd0
mov dword [esi], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [ebp - 4], 2
lea esi, [edi + 0x1c]
mov dword [ebp - 0x48], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004024b0
mov dword [esi], eax
mov byte [ebp - 4], 3
lea esi, [edi + 0x24]
mov dword [ebp - 0x48], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004024b0
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 5
lea esi, [edi + 0x38]
mov dword [edi + 0x34], 0
mov dword [ebp - 0x48], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041ddb0
mov dword [esi], eax
lea eax, [edi + 0x40]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0x70]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 0xc
mov byte [ebp - 4], 8
lea esi, [edi + 0x98]
mov dword [ebp - 0x48], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00461273
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 9
cmp byte [edi + 8], 0
jne 0x4158b1
push 4
mov byte [edi + 8], 1
call fcn.00461273
mov esi, eax
add esp, 4
mov eax, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], eax
mov dword [esi], edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.004039d0
mov dword [ebp - 0x28], 0x473b74
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x28]
call fcn.00403a80
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41585f
push 4
push eax
call fcn.00461242
add esp, 8
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x415881
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_destroy]
add esp, 4
push ebx
call dword [sym.imp.MSVCP140.dll__Cnd_destroy]
add esp, 4
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xd
call fcn.00403b10
mov byte [ebp - 4], 9
cmp dword [ebp - 0x4c], 0
je 0x4158b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 0x34
call fcn.00461273
add esp, 4
mov dword [ebp - 0x48], eax
push str.Save_File_To_Local
mov ecx, eax
mov byte [ebp - 4], 0xe
call dword [sym.imp.brbase.dll_public:_void___thiscall_base::Thread::constructor_char_const__]
mov esi, eax
mov byte [ebp - 4], 9
test esi, esi
je 0x4158e4
cmp esi, dword [edi + 0x18]
jne 0x4158e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x18], 0
test ecx, ecx
je 0x4158f9
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, esi
mov dword [edi + 0x18], esi
call dword [sym.imp.brbase.dll_public:_bool___thiscall_base::Thread::IsRunning_void_const]
test al, al
jne 0x415911
mov ecx, dword [edi + 0x18]
call dword [sym.imp.brbase.dll_public:_bool___thiscall_base::Thread::Start_void_]
lea ecx, [ebp - 0x50]
call fcn.00414f80
mov ebx, eax
cmp ebx, 0x48b2c4
je 0x41597b
mov byte [ebp - 4], 0x10
mov ecx, 0x48b2c4
mov esi, dword [0x48b2c4]
push dword [esi + 4]
call fcn.00401fa0
mov eax, dword [0x48b2c4]
mov dword [eax + 4], esi
mov eax, dword [0x48b2c4]
mov dword [eax], esi
mov eax, dword [0x48b2c4]
mov dword [eax + 8], esi
mov ecx, dword [0x48b2c4]
mov dword [0x48b2c8], 0
mov eax, dword [ebx]
mov dword [0x48b2c4], eax
mov dword [ebx], ecx
mov ecx, dword [0x48b2c8]
mov eax, dword [ebx + 4]
mov dword [0x48b2c8], eax
mov dword [ebx + 4], ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x50]
push eax
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call fcn.00402030
push 0x28
push dword [ebp - 0x50]
call fcn.00461242
push 4
call fcn.00461273
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
push 0xc
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.iphlpapi.dll
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00409b10
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
or ebx, 1
push eax
mov dword [ebp - 0x48], ebx
call dword [sym.imp.brbase.dll_public:_void___thiscall_base::FilePath::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [ebp - 4], 0x13
or ebx, 2
push eax
mov ecx, esi
mov dword [ebp - 0x48], ebx
call dword [sym.imp.brbase.dll_public:_void___thiscall_base::ScopedNativeLibrary::constructor_class_base::FilePath_const__]
mov ebx, eax
mov dword [ebp - 4], 0x15
test ebx, ebx
je 0x415a19
cmp ebx, dword [edi + 0x30]
jne 0x415a19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov esi, dword [edi + 0x30]
mov dword [edi + 0x30], 0
test esi, esi
je 0x415a3a
mov ecx, esi
call dword [sym.imp.brbase.dll_public:_void___thiscall_base::ScopedNativeLibrary::destructor_void_]
push 4
push esi
call fcn.00461242
add esp, 8
lea ecx, [ebp - 0x44]
mov dword [edi + 0x30], ebx
call dword [sym.imp.brbase.dll_public:_void___thiscall_base::FilePath::destructor_void_]
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x415a89
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415a7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x415a7f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461242
add esp, 8
mov ecx, dword [edi + 0x30]
mov esi, dword [sym.imp.brbase.dll_public:_void____thiscall_base::ScopedNativeLibrary::GetFunctionPointer_char_const__const]
cmp dword [ecx], 0
je 0x415aa5
push str.AllocateAndGetTcpExTableFromStack
call esi
mov dword [0x48b17c], eax
jmp 0x415aaa
mov eax, dword [0x48b17c]
test eax, eax
jne 0x415abd
mov ecx, dword [edi + 0x30]
push str.GetExtendedTcpTable
call esi
mov dword [0x48b178], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret 4