Function at 0x46b250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x498b98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0xc]
lea ecx, [ebp]
mov esi, dword [ebp + 0xa8]
add eax, 0x9c
push eax
push esi
call fcn.00421ea0
mov dword [ebp - 4], 0
mov edx, dword [edi + 0xc]
mov ecx, dword [ebp + 0x78]
mov eax, dword [edx + 0x7c]
test eax, eax
cmovns ecx, eax
mov dword [ebp + 0x78], ecx
mov ecx, 1
mov eax, dword [edx + 0x30]
shr eax, 2
test al, 1
mov dword [ebp - 0x1c], 0x4a8c0c
movzx eax, byte [ebp + 0x80]
cmovne eax, ecx
mov word [ebp - 0x18], 0x101
mov byte [ebp + 0x80], al
mov dword [ebp - 0x14], esi
test esi, esi
je 0x46b305
lea ecx, [ebp - 0x1c]
call fcn.00408680
mov ecx, dword [ebp - 0x14]
push 0
push 0
push 0x65
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 4]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x24], esi
test eax, eax
jle 0x46b4ab
xor edi, edi
mov dword [ebp - 0x28], edi
nop dword [eax]
test edi, edi
js 0x46b507
cmp esi, eax
jge 0x46b507
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi]
add esi, edi
cmp byte [esi + 0x155], 0
je 0x46b48d
mov ecx, esi
call fcn.0044ea00
test eax, eax
je 0x46b358
cmp eax, 1
jne 0x46b48d
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea eax, [ebp]
push eax
call fcn.0044eb30
mov edi, eax
call fcn.00420c00
mov al, byte [eax + 0x1c]
test al, al
je 0x46b47d
call fcn.00420c00
test byte [eax + 0x20], 8
je 0x46b47d
call fcn.00420c00
mov dword [ebp - 0x30], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x46b513
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push 8
push str.Update__
call fcn.004023a0
mov edx, dword [esi + 4]
test edx, edx
je 0x46b3e9
mov eax, edx
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b3d0
sub eax, esi
lea ecx, [ebp - 0x10]
sar eax, 1
push eax
push edx
call fcn.004023a0
push 0x25
push str.__installer_downloaded._Return_code:
lea ecx, [ebp - 0x10]
call fcn.004023a0
push edi
lea ecx, [ebp - 0x10]
call fcn.004207e0
mov esi, eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x46b513
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
push 0
push 0x4a85e8
call fcn.004023a0
push ecx
push esi
push ecx
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
call fcn.00420d60
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b45e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b47d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
cmovne ebx, edi
cmp edi, 0xe0000008
je 0x46b4ab
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add edi, 0x164
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 4]
cmp esi, eax
jl 0x46b320
cmp byte [ebp - 0x18], 0
je 0x46b4d1
cmp byte [ebp - 0x17], 0
je 0x46b4d1
cmp dword [ebp - 0x14], 0
je 0x46b4d1
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
push ebx
push 0x65
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00422110
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0046e38e
lea esp, [ebp + 0xa0]
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.004086a0
push 0x80004005
call fcn.004024c0
int3