Function at 0x435630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4bb674]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
lea ecx, [ebp - 0xb0]
push str.InitDialog
push ecx
mov dword [ebp - 0xb0], eax
call fcn.004011c0
add esp, 8
push 0x5c
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnInitDialog
call fcn.00401ef0
lea edx, [ebp - 0xb0]
push edx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 0xb0]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4356bd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4356bd
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push eax
push ecx
push edx
mov ecx, esi
mov dword [esi + 0xbc], 0
call fcn.0043b840
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
call ebx
movzx edi, al
call ebx
shr eax, 8
movzx eax, al
cmp edi, 6
ja 0x4356f9
jne 0x43572c
test eax, eax
je 0x43572c
mov eax, dword [esi + 0xb8]
lea edi, [esi + 0xb8]
test eax, eax
je 0x435717
mov dword [edi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
push 0x49a5fc
push 0x17
push 0
push 0x49c448
call dword [sym.imp.ole32.dll_CoCreateInstance]
fldz
mov dword [esi + 0x90], 0xc
fstp dword [esi + 0xd0]
mov dword [esi + 0x88], 0x10
mov eax, dword [0x4bb674]
mov ecx, dword [0x4bbe08]
mov dword [ebp - 0xb0], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x20]
push eax
call edx
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x435770
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xb0]
push str.NavigateToGui____s
push eax
call fcn.004011c0
add esp, 0xc
cmp dword [ebp - 0xc], edi
jb 0x435796
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00473515
add esp, 4
push 0x71
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnInitDialog
call fcn.00401ef0
lea edx, [ebp - 0xb0]
push edx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 0xb0]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4357eb
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4357eb
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
mov ecx, dword [0x4bbe08]
xor eax, eax
xor edi, edi
mov word [ebp - 0x74], ax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x90]
push eax
call edx
push edi
push 0x3f
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00412880
push 0x48
mov dword [ebp - 0xb8], edi
call fcn.004740ea
add esp, 0x14
cmp eax, edi
je 0x435d29
mov dword [ebp - 0xbc], eax
mov dword [eax], eax
mov eax, dword [ebp - 0xbc]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0xbc]
mov dword [eax + 8], eax
mov edx, dword [ebp - 0xbc]
mov al, 1
mov byte [edx + 0x44], al
mov ecx, dword [ebp - 0xbc]
mov byte [ecx + 0x45], al
cmp dword [ebp - 0x48], edi
je 0x4358df
nop
push edi
push 0x26
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00412960
push edi
push 0x3d
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.00412960
add esp, 0x20
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040ae90
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0040b320
cmp dword [ebp - 0x98], 8
jb 0x4358c8
mov edx, dword [ebp - 0xac]
push edx
call fcn.00473515
add esp, 4
cmp dword [ebp - 0xc], 8
jb 0x4358da
mov eax, dword [ebp - 0x20]
push eax
call fcn.00473515
add esp, 4
cmp dword [ebp - 0x48], edi
jne 0x435870
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0x90]
push eax
call fcn.00402af0
add esp, 0xc
test al, al
je 0x435b06
mov ecx, dword [0x4bb674]
lea edx, [ebp - 0xb0]
push str.Clear
push edx
mov dword [ebp - 0xb0], ecx
call fcn.004011c0
add esp, 8
push 0x7c
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnInitDialog
call fcn.00401ef0
lea eax, [ebp - 0xb0]
push eax
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 0xb0]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x435970
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x435970
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
mov ecx, esi
call fcn.0043b110
mov eax, dword [0x4bb674]
lea ecx, [ebp - 0xb0]
push str.DisplayFromString
push ecx
mov dword [ebp - 0xb0], eax
call fcn.004011c0
add esp, 8
push 0x7e
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnInitDialog
call fcn.00401ef0
lea edx, [ebp - 0xb0]
push edx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 0xb0]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x4359e5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4359e5
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
cmp dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x74]
jae 0x4359f1
lea eax, [ebp - 0x74]
push 0x434810
push eax
mov ecx, esi
call fcn.0043b6f0
mov eax, dword [0x4bb674]
lea ecx, [ebp - 0xb0]
push str.OnNavigateComplete2_NULL__NULL_
push ecx
mov dword [ebp - 0xb0], eax
call fcn.004011c0
add esp, 8
push 0x80
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnInitDialog
call fcn.00401ef0
lea edx, [ebp - 0xb0]
push edx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 0xb0]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x435a6f
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x435a6f
mov edx, dword [ebp - 0xb0]
add edx, 0xfffffff4
push edx
call fcn.00473f58
add esp, 4
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
push edi
push edi
push esi
call ecx
mov edx, dword [0x4bb674]
lea eax, [ebp - 0xb0]
push str.OnDocumentComplete_NULL__NULL_
push eax
mov dword [ebp - 0xb0], edx
call fcn.004011c0
add esp, 8
push 0x82
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnInitDialog
call fcn.00401ef0
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 0xb0]
lea edx, [eax - 0xc]
cmp edx, dword [0x4bb670]
je 0x435aeb
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x435aeb
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff4
push eax
call fcn.00473f58
add esp, 4
mov edx, dword [0x4bbdf8]
mov eax, dword [edx + 0xb0]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x20]
push edi
push eax
push esi
call ecx
jmp 0x435b94
mov ecx, dword [0x4bbe08]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0xac]
push eax
call edx
cmp dword [eax + 0x14], 8
jb 0x435b22
mov eax, dword [eax]
cmp eax, edi
je 0x435b3d
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0x435b3d
push 0x8007000e
call fcn.00401000
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi + 0xb0]
push 0
push 0
mov ecx, 4
mov word [ebp - 0xc], cx
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push 0
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
call edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x98], 8
jb 0x435b92
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.00473515
add esp, 4
xor edi, edi
mov edx, dword [0x4bb674]
lea eax, [ebp - 0xb0]
push str.Navigated
push eax
mov dword [ebp - 0xb0], edx
call fcn.004011c0
add esp, 8
push 0x87
push ecx
mov ecx, esp
push str.CBrowserInstallerHtmlDlg::OnInitDialog
call fcn.00401ef0
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00401ba0
mov ecx, eax
call fcn.00401d00
mov eax, dword [ebp - 0xb0]
lea edx, [eax - 0xc]
cmp edx, dword [0x4bb670]
je 0x435c06
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x435c06
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff4
push eax
call fcn.00473f58
add esp, 4
push edi
push edi
push edi
push edi
mov byte [esi + 0xcc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, 0x4bbe78
mov dword [ebp - 0xb0], 6
call fcn.004349f0
push 0xffffffffffffffff
push edi
xor edx, edx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], dx
call fcn.0040b320
mov eax, dword [ebp - 0x3c]
mov ebx, 8
cmp dword [ebp - 0x28], ebx
jae 0x435c6b
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [ebp - 0x28], ebx
jb 0x435c87
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00473515
add esp, 4
mov eax, dword [ebp - 0xbc]
xor edx, edx
mov esi, 7
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], dx
mov ecx, dword [eax]
push ecx
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040beb0
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.00473515
add esp, 4
cmp dword [ebp - 0x44], ebx
jb 0x435cd4
mov edx, dword [ebp - 0x58]
push edx
call fcn.00473515
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x7c], ebx
jb 0x435cf4
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00473515
add esp, 4
xor edx, edx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov word [ebp - 0x90], dx
cmp dword [ebp - 0x60], ebx
jb 0x435d14
mov eax, dword [ebp - 0x74]
push eax
call fcn.00473515
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047421a
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xb0], edi
call fcn.00473ffc
push 0x4b1784
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], vtable.std::bad_alloc.0
call fcn.0047416a
int3