Function at 0x405062
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, edx
mov dword [ebp - 0x10], ecx
push edi
mov edx, str.BRAVE_UPDATE_SERVER
lea ecx, [ebp - 4]
call fcn.00411ae9
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x4050ad
mov edi, str.laptop_updates.brave.com
push edi
call fcn.0041fcb3
pop ecx
push eax
push edi
lea ecx, [ebp - 4]
call fcn.004030c7
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00404fe7
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
jne 0x4050de
mov esi, 0x80070057
jmp 0x405242
call fcn.0040142a
push eax
lea ecx, [ebp - 8]
call fcn.00403209
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
push 0
mov esi, dword [esi]
mov eax, dword [eax]
push 0x2e
mov dword [ebp - 0x10], eax
call fcn.00405260
mov ecx, eax
cmp ecx, 0xffffffff
je 0x405125
mov eax, dword [ebx + 0xc]
mov edx, dword [eax]
mov edx, dword [edx - 0xc]
sub edx, ecx
lea ecx, [ebp - 0xc]
dec edx
push edx
push ecx
mov ecx, eax
call fcn.00402c88
jmp 0x405132
push str.0.0.0
lea ecx, [ebp - 0xc]
call fcn.00402ebb
cmp word [ebp - 0x40], 0
mov eax, str.winia32_bc
je 0x405143
mov eax, str.winx64_bc
push esi
push dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
push edi
push esi
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push str.https:___s_1_installerEvent_platform_sversion_schannel_sref_sevent_s
push eax
call fcn.00412289
add esp, 0x20
lea ecx, [esi - 0x10]
call fcn.00401412
and dword [ebp - 0xc], 0
call fcn.00406758
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00406806
mov esi, eax
test esi, esi
js 0x405237
mov eax, dword [ebp - 0xc]
push 0xb0
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x10], eax
call fcn.004286b8
pop ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0040c987
mov esi, eax
push 0x98
mov dword [esi + 0x38], 1
call fcn.004286b8
pop ecx
mov ecx, eax
call fcn.00408eaf
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], eax
cmp dword [esi + 8], ecx
je 0x4051d4
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x4051e0
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00407643
xor eax, eax
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
call fcn.00402e31
and dword [esi + 0x20], 0
lea eax, [ebp - 0x1c]
and dword [esi + 0x24], 0
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0040cbf5
mov dword [ebp - 0xc], eax
test eax, eax
js 0x405218
xor eax, eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x1c]
call fcn.0040528f
mov ecx, esi
call fcn.0040cb29
push 0xb0
push esi
call fcn.004281a8
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00401412
lea ecx, [edi - 0x10]
call fcn.00401412
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00401412
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret