Function at 0x40f861
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49bb6a
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4bea34]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4bea34]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x98]
cmp dword [eax + 4], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], eax
mov edi, 0x3ea
jne 0x40f8dd
lea ecx, [eax - 0x98]
neg eax
sbb eax, eax
and eax, ecx
push edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov eax, dword [esp + 0x28]
call fcn.00412c5e
push 1
push esi
call fcn.00412b26
pop ecx
pop ecx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [esi + 0x64]
lea edi, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00435bed
mov ebx, dword [esp + 0x48]
push 0x3f0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edi, [ebx + 0xc4]
push eax
mov dword [esp + 0x48], edi
call fcn.004115ac
mov esi, dword [ebx + 0x64]
add esi, 0x304
push str.ComponentDisplayName
lea ecx, [esp + 0xa0]
mov dword [esp + 0x9c], esi
call fcn.00401a8f
xor edi, edi
push 0x43a
mov dword [esp + 0x104], edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
push 1
push eax
push 0x30
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
lea ecx, [esp + 0xa4]
call fcn.00401e14
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], vtable.dxtl::RefCountedPtr_class_dxi::IDivXInstall_.0
mov dword [esp + 0x100], 1
mov ecx, dword [ebx + 0x64]
lea eax, [esp + 0x40]
call fcn.00409d72
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax + 0xe4]
cmp ecx, 2
push esi
jne 0x40fa4c
mov ecx, ebx
call fcn.0040e9a1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x100], 2
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x94]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
jbe 0x40fa00
call fcn.0047122b
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
lea esi, [esp + 0x18]
mov dword [esp + 0x10], eax
jbe 0x40fa17
call fcn.0047122b
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push esi
push dword [esp + 0x18]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
call fcn.004129c9
add esp, 0x18
lea esi, [esp + 0x18]
mov byte [esp + 0x100], 1
call fcn.0043810e
jmp 0x40fe48
cmp ecx, edi
mov ecx, ebx
jne 0x40fa59
call fcn.0040e802
jmp 0x40fa5e
call fcn.0040e932
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x100], 3
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x8c]
xor eax, eax
lea edi, [esp + 0x10]
stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
jbe 0x40fa9f
call fcn.0047122b
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
jbe 0x40faae
call fcn.0047122b
mov eax, dword [esp + 0x14]
push dword [esp + 0x10]
sub eax, edi
sar eax, 3
push eax
push dword [esp + 0x1c]
push edi
call fcn.00412ff4
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
jbe 0x40fadc
call fcn.0047122b
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], eax
jbe 0x40faf3
call fcn.0047122b
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edi
push dword [esp + 0x1c]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
call fcn.00412a15
xor edi, edi
add esp, 0x18
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x100], 4
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x90]
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 5
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x10c], 7
call fcn.0040f598
mov esi, dword [esp + 0x3c]
add esp, 0xc
cmp esi, dword [esp + 0x34]
jbe 0x40fbb5
call fcn.0047122b
lea eax, [esp + 0x2c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x4c], eax
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
jbe 0x40fbd4
call fcn.0047122b
mov dword [esp + 0x50], esi
lea edi, [esp + 0x4c]
lea esi, [esp + 0x58]
call fcn.004371d9
test al, al
je 0x40fcf3
call fcn.0043708b
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
lea edx, [esp + 0xb8]
push edx
call dword [eax + 0x2c]
mov dword [esp + 0x10], eax
mov byte [esp + 0x100], 8
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x84], eax
mov dword [esp + 0x14], eax
jbe 0x40fc27
call fcn.0047122b
mov edi, dword [esp + 0x84]
cmp edi, dword [esp + 0x88]
lea esi, [esp + 0x80]
jbe 0x40fc43
call fcn.0047122b
push dword [esp + 0x10]
lea eax, [esp + 0x84]
push dword [esp + 0x18]
push esi
push edi
push eax
lea edi, [esp + 0xa4]
call fcn.00412839
add esp, 0x14
push 0
push 1
lea esi, [esp + 0xc0]
call fcn.004012a8
lea esi, [esp + 0x58]
call fcn.0043708b
mov esi, dword [eax + 4]
mov dword [esp + 0x10], esi
mov byte [esp + 0x100], 9
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x84], eax
mov edi, eax
jbe 0x40fca3
call fcn.0047122b
cmp dword [esp + 0x90], 0
je 0x40fcbd
lea eax, [esp + 0x80]
cmp dword [esp + 0x90], eax
je 0x40fcc2
call fcn.0047122b
cmp dword [esp + 0x94], edi
mov edx, dword [esi]
setne al
movzx eax, al
shl eax, 0x10
push eax
mov ecx, esi
call dword [edx + 0x88]
lea esi, [esp + 0x58]
mov byte [esp + 0x100], 7
call fcn.0042569c
jmp 0x40fbc5
xor eax, eax
lea edi, [esp + 0x10]
stosb byte es:[edi], al
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x30], edi
jbe 0x40fd09
call fcn.0047122b
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x34]
jbe 0x40fd18
call fcn.0047122b
push dword [esp + 0x10]
mov eax, edi
sub eax, esi
sar eax, 3
push eax
push edi
push esi
call fcn.004130be
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp dword [esp + 0x30], eax
lea esi, [esp + 0x70]
mov dword [esp + 0x14], eax
jbe 0x40fd45
call fcn.0047122b
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
jbe 0x40fd54
call fcn.0047122b
cmp edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
mov esi, edi
je 0x40fd81
mov ecx, dword [esi + 4]
lea ebx, [esp + 0x4c]
call fcn.0040ea10
add esi, 8
cmp esi, dword [esp + 0x14]
jne 0x40fd68
mov ebx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x100], 0xa
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
lea edx, [esp + 0x60]
push edx
call dword [eax + 0x94]
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x64], eax
mov dword [esp + 0x10], eax
jbe 0x40fdbb
call fcn.0047122b
mov edi, dword [esp + 0x64]
cmp edi, dword [esp + 0x68]
lea esi, [esp + 0x60]
jbe 0x40fdce
call fcn.0047122b
push dword [esp + 0x10]
lea eax, [esp + 0x64]
push esi
push edi
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
call fcn.004129c9
add esp, 0x18
lea esi, [esp + 0x60]
mov byte [esp + 0x100], 7
call fcn.0043810e
lea esi, [esp + 0x80]
call fcn.00401f71
lea esi, [esp + 0x70]
call fcn.00401f71
lea esi, [esp + 0x9c]
mov byte [esp + 0x100], 4
call fcn.0043810e
lea esi, [esp + 0x2c]
mov byte [esp + 0x100], 3
call fcn.0043810e
lea esi, [esp + 0x18]
mov byte [esp + 0x100], 1
call fcn.0043810e
xor edi, edi
push dword [ebx + 0x9c]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [esp + 0x44]
call fcn.00411719
push ecx
push ecx
mov esi, esp
mov dword [esp + 0x4c], esp
mov dword [esp + 0x4c], esi
mov dword [esi], vtable.dxtl::RefCountedPtr_STLSafe_class_dxi::IDivXInstall_.0
mov dword [esi + 4], edi
mov byte [esp + 0x108], 0xb
mov edi, dword [esp + 0x48]
mov dword [esi], vtable.dxtl::RefCountedPtr_class_dxi::IDivXInstall_.0
call fcn.004482b8
push dword [esp + 0xa0]
mov byte [esp + 0x10c], 1
mov eax, dword [ebx + 0x64]
push dword [eax + 4]
lea esi, [ebx + 0x150]
mov ebx, esi
call fcn.0043ab84
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0x64]
mov ecx, dword [eax + 0x4f4]
mov ebx, dword [eax + 0x4fc]
add eax, 0x4f0
mov edx, dword [eax]
mov eax, dword [eax + 8]
push 0x40
sub ebx, ecx
push ebx
sub eax, edx
push eax
push ecx
xor ebx, ebx
mov eax, esi
neg eax
push edx
lea ecx, [edi + 0x154]
sbb eax, eax
push ebx
and eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
mov byte [esp + 0x100], 0xc
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
lea edx, [esp + 0xd4]
push edx
call dword [eax + 0x48]
cmp dword [esp + 0xec], 8
mov eax, dword [esp + 0xd8]
jae 0x40ff36
lea eax, [esp + 0xd8]
push eax
push dword [edi + 0x17c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x4c]
push eax
mov ebx, esi
call fcn.0043b2ce
push dword [edi + 0x11c]
mov ecx, esi
push dword [edi + 0x118]
call fcn.0043b217
xor al, al
mov edi, esi
call fcn.0043b420
push 0
push 1
lea esi, [esp + 0xdc]
call fcn.004012a8
or dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.004011eb
xor eax, eax
inc eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00470af5
mov esp, ebp
pop ebp
ret