Function at 0x45d0d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4f3b78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x54], ebx
call fcn.004bb047
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45d117
push 0x80004005
call fcn.00401730
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x64]
mov byte [esp + 0x54], 1
mov ecx, dword [ebp]
mov edi, dword [esp + 0x60]
push ecx
push edi
push str.CDtsHPSetting::GetModeSharingControlValue
lea edx, [esp + 0x30]
push str._HPX___s__s_val_d_r_n
push edx
call fcn.00401af0
mov esi, dword [esp + 0x38]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp], ebx
mov ebp, dword [esp + 0x5c]
cmp dword [ebp + 0xa0], ebx
jne 0x45d1b5
lea eax, [esi - 0x10]
mov byte [esp + 0x54], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d18a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d1ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45d469
mov dword [esp + 0x20], ebx
mov byte [esp + 0x54], 2
mov eax, dword [ebp + 0xb4]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x34], ebx
call eax
xor ecx, ecx
cmp eax, ebx
setge cl
mov esi, ecx
cmp esi, ebx
je 0x45d33d
mov dword [esp + 0x14], ebx
mov byte [esp + 0x54], 3
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call edx
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x18], eax
je 0x45d228
mov eax, dword [ecx]
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x510470
push ecx
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45d30d
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x54], 5
cmp dword [edi - 4], 1
mov esi, eax
jle 0x45d252
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x64]
call fcn.00401a30
mov edi, dword [esp + 0x60]
mov edx, dword [esi]
mov ecx, dword [edx + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call ecx
cmp edi, ebx
jne 0x45d268
xor ecx, ecx
jmp 0x45d285
mov ecx, edi
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x45d270
sub ecx, esi
sar ecx, 1
js 0x45d38a
cmp ecx, dword [edi - 8]
jg 0x45d38a
xor edx, edx
cmp eax, ebx
setge dl
mov dword [edi - 0xc], ecx
mov word [edi + ecx*2], bx
mov esi, edx
cmp esi, ebx
je 0x45d2f0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
xor ecx, ecx
cmp eax, ebx
mov eax, dword [esp + 0x28]
setge cl
push ebx
push eax
mov esi, ecx
mov ecx, dword [esp + 0x6c]
mov edx, esi
neg edx
sbb edx, edx
and edx, eax
push esi
push ecx
mov dword [ecx], edx
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov dword [esp + 0x40], esi
call fcn.00401830
push ebp
call fcn.0045be50
mov byte [esp + 0x54], 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x45d305
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x54], 3
je 0x45d322
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
mov byte [esp + 0x54], 2
je 0x45d333
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
cmp dword [esp + 0x2c], ebx
jne 0x45d40a
cmp dword [ebp + 0x1c], ebx
je 0x45d40a
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x54], 6
cmp dword [edi - 4], 1
mov esi, dword [ebp + 0xa4]
jle 0x45d373
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x64]
call fcn.00401a30
mov edi, dword [esp + 0x60]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x20]
lea edx, [esp + 0x34]
push edx
push ebx
push edi
push esi
call eax
cmp edi, ebx
jne 0x45d394
xor ecx, ecx
jmp 0x45d3b1
push 0x80070057
call fcn.00401730
mov ecx, edi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x45d3a0
sub ecx, esi
sar ecx, 1
js 0x45d38a
cmp ecx, dword [edi - 8]
jg 0x45d38a
mov dword [edi - 0xc], ecx
mov word [edi + ecx*2], bx
xor ecx, ecx
cmp eax, ebx
mov eax, dword [esp + 0x3c]
setge cl
push 1
push eax
mov esi, ecx
mov ecx, dword [esp + 0x6c]
mov edx, esi
neg edx
sbb edx, edx
push esi
push ecx
and edx, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x74], esp
mov ebp, esp
push eax
mov dword [ecx], edx
call fcn.00401850
mov edx, dword [esp + 0x70]
add esp, 4
add eax, 0x10
push edx
mov dword [ebp], eax
call fcn.0045be50
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x54], 1
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x45d41f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d443
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d467
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc