Function at 0x418480
Capabilities:
Access peb ldr_data
Check if file exists
Check os version
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497f93
mov eax, dword fs:[0]
push eax
sub esp, 0x99c
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea ecx, [edi + 0x10]
mov dword [ebp - 0x99c], edi
mov dword [edi], vtable.wiutil::CWIAutoThread.0
mov byte [edi + 8], bl
call fcn.00473f63
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
mov dword [edi + 0x10], vtable.misc::BI_ERROR.0
push ebx
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], ebx
xor eax, eax
push ebx
mov word [edi + 0x1c], ax
push ebx
mov dword [edi + 0x38], ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 4], eax
call esi
push eax
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [edi + 0x40]
mov dword [ebp - 4], ebx
push ecx
mov dword [edi], vtable.CBrowserInstallerImp.0
call fcn.00417870
mov eax, 7
xor edx, edx
mov dword [edi + 0xcc], eax
mov dword [edi + 0xc8], ebx
mov word [edi + 0xb8], dx
xor ecx, ecx
mov dword [edi + 0xe8], eax
mov dword [edi + 0xe4], ebx
mov word [edi + 0xd4], cx
mov dword [edi + 0x104], eax
mov dword [edi + 0x100], ebx
mov word [edi + 0xf0], dx
mov dword [edi + 0x120], eax
mov dword [edi + 0x11c], ebx
mov word [edi + 0x10c], cx
mov dword [edi + 0x13c], eax
mov dword [edi + 0x138], ebx
mov word [edi + 0x128], dx
mov dword [edi + 0x158], eax
mov dword [edi + 0x154], ebx
mov word [edi + 0x144], cx
lea esi, [edi + 0x160]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
mov word [esi], dx
mov dword [edi + 0x17c], ebx
mov dword [edi + 0x180], ebx
mov dword [edi + 0x184], ebx
mov dword [edi + 0x18c], 0x1010101
mov dword [edi + 0x190], ebx
mov dword [edi + 0x194], ebx
mov dword [edi + 0x198], ebx
mov dword [edi + 0x19c], ebx
mov dword [edi + 0x1a0], ebx
mov dword [edi + 0x1a4], ebx
mov dword [edi + 0x1a8], ebx
mov dword [edi + 0x1ac], ebx
mov dword [edi + 0x1b0], ebx
mov dword [edi + 0x1b4], ebx
push 0x7fe
lea ecx, [ebp - 0x80e]
xor eax, eax
push ebx
mov byte [ebp - 4], 0xe
push ecx
mov word [ebp - 0x810], ax
call fcn.00474610
push 0x114
lea edx, [ebp - 0x994]
push ebx
push edx
call fcn.00474610
add esp, 0x18
lea eax, [ebp - 0x994]
push eax
mov dword [ebp - 0x994], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x990], 6
push 0x400
jb 0x41865d
lea ecx, [ebp - 0x810]
push ecx
push 0x4a8cb4
jmp 0x418669
lea edx, [ebp - 0x810]
push edx
push str._UserProfile_Local_SettingsApplication_Data_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
jmp 0x418680
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418680
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
mov ecx, esi
call fcn.0040b930
push str.MPCBrowserUpdateDownload_
lea ecx, [ebp - 0x82c]
push esi
push ecx
call fcn.0040cb20
add esp, 0xc
lea esi, [edi + 0x10c]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.0040b1e0
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x818], 8
jb 0x4186e1
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00473515
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4186eb
mov eax, dword [esi]
jmp 0x4186ed
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x41870a
cmp dword [esi + 0x14], 8
jb 0x418701
mov esi, dword [esi]
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, edi
call fcn.00418980
lea eax, [ebp - 0x848]
push 0x4a7b68
push eax
lea ebx, [edi + 0x128]
call fcn.0040cd60
push 0x4a7b68
push eax
lea ecx, [ebp - 0x82c]
push ecx
mov byte [ebp - 4], 0x10
call fcn.0040ce40
mov ecx, eax
lea eax, [edi + 0x144]
lea esi, [ebp - 0x880]
mov byte [ebp - 4], 0x11
call fcn.0040cc10
push 0x4a7b68
push eax
lea edx, [ebp - 0x864]
push edx
mov byte [ebp - 4], 0x12
call fcn.0040ce40
add esp, 0x20
push 0xffffffffffffffff
push 0
lea esi, [edi + 0x10c]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.0040b700
mov ebx, 8
cmp dword [ebp - 0x850], ebx
jb 0x4187a0
mov eax, dword [ebp - 0x864]
push eax
call fcn.00473515
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x850], 7
mov dword [ebp - 0x854], 0
mov word [ebp - 0x864], cx
cmp dword [ebp - 0x86c], ebx
jb 0x4187d4
mov edx, dword [ebp - 0x880]
push edx
call fcn.00473515
add esp, 4
xor eax, eax
mov dword [ebp - 0x86c], 7
mov dword [ebp - 0x870], 0
mov word [ebp - 0x880], ax
cmp dword [ebp - 0x818], ebx
jb 0x418808
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.00473515
add esp, 4
xor edx, edx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], dx
cmp dword [ebp - 0x834], ebx
jb 0x418840
mov eax, dword [ebp - 0x848]
push eax
call fcn.00473515
add esp, 4
cmp dword [esi + 0x14], ebx
jb 0x418849
mov eax, dword [esi]
jmp 0x41884b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x418869
cmp dword [esi + 0x14], ebx
jb 0x41885e
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x848]
push ecx
mov ecx, edi
call fcn.0041a6a0
cmp dword [eax + 0x14], ebx
jb 0x41887e
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
setne byte [ebp - 0x995]
cmp dword [ebp - 0x834], ebx
jb 0x4188a6
mov edx, dword [ebp - 0x848]
push edx
call fcn.00473515
add esp, 4
cmp byte [ebp - 0x995], 0
je 0x4188e6
lea eax, [ebp - 0x848]
push eax
mov ecx, edi
call fcn.0041a6a0
cmp dword [eax + 0x14], ebx
jb 0x4188c4
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x834], ebx
jb 0x4188e6
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.00473515
add esp, 4
cmp dword [edi + 0x1a8], 0
jne 0x418959
lea edx, [ebp - 0x9a0]
push edx
lea eax, [ebp - 0x9a8]
push eax
mov dword [ebp - 0x9a0], edi
call fcn.004221d0
add esp, 8
lea edi, [edi + 0x1a8]
mov byte [ebp - 4], 0x14
call fcn.00422170
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x9a4]
test esi, esi
je 0x418951
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x418951
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x418951
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x99c]
jmp 0x41895b
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 - 0x10]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret