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

Disassembly:
push 0xffffffffffffffff
push 0x46ea3e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498700]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
push 0xe
mov edi, ecx
xor ebx, ebx
push str.Select__From
lea ecx, [esp + 0x7c]
mov esi, edx
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
call fcn.00406b60
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x7c]
mov dword [esp + 0xc4], ebx
call fcn.00406960
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
jae 0x4050ed
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x20
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
push esi
push 0x481044
push edi
call edx
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jl 0x40532f
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40532f
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40530e
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esp + 0x20], ebx
je 0x40530e
cmp dword [esp + 0x18], ebx
je 0x40530e
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x24]
push ecx
call esi
lea edx, [esp + 0x3c]
push edx
call esi
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebx
push str.displayName
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4052df
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push ebx
push str.productState
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4052f3
cmp word [esp + 0x24], 8
jne 0x4052a0
cmp word [esp + 0x3c], 3
jne 0x4052a0
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov edx, dword [esp + 0x2c]
push eax
mov esi, 7
push edx
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
call fcn.00406b60
mov byte [esp + 0xbc], 3
mov eax, dword [esp + 0x44]
shr eax, 0xc
and al, 1
mov byte [esp + 0x38], al
mov ecx, dword [esp + 0x38]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x70], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb8]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov word [ecx + 4], bx
call fcn.00406a70
lea esi, [esp + 0x74]
call fcn.004084b0
add esp, 0x20
mov ebx, eax
mov esi, ebp
mov byte [esp + 0xbc], 4
call fcn.00406590
mov esi, 8
cmp dword [esp + 0x6c], esi
jb 0x405285
mov eax, dword [esp + 0x58]
push eax
call fcn.00430f55
add esp, 4
cmp dword [esp + 0xa8], esi
jb 0x40529e
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00430f55
add esp, 4
xor ebx, ebx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x3c]
push edx
call esi
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xc0], bl
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jge 0x405155
jmp 0x40530e
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x3c]
push ecx
call esi
lea edx, [esp + 0x24]
push edx
jmp 0x405305
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x3c]
push eax
call esi
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xc0], bl
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40531e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0x8c], 8
jb 0x405346
mov ecx, dword [esp + 0x78]
push ecx
jmp 0x40533e
cmp dword [esp + 0x8c], 8
jb 0x405346
mov edx, dword [esp + 0x78]
push edx
call fcn.00430f55
add esp, 4
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0044de0c
add esp, 0xac
ret 4