Function at 0x417850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x579368
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x34], esi
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
lea eax, [esp + 0x18]
push eax
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
mov byte [esp + 0x30], 1
call fcn.00401bd0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x30], 2
call fcn.00403d80
add esp, 4
push eax
lea edx, [esp + 0x20]
push edx
lea ebx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.00407c00
mov edi, dword [eax]
mov eax, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x4178ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x34]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], esi
call edi
test eax, eax
jne 0x41790d
mov esi, 1
mov eax, dword [esp + 0x1c]
test esi, esi
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417932
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417957
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4179f4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.fastpdf
call fcn.0040e660
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x20]
mov byte [esp + 0x34], 4
call fcn.00407c00
mov esi, dword [eax]
mov eax, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x41799a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0
call edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4179cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4179f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.UninstallString
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x1c]
call fcn.00403b80
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x417a20
or esi, 0xffffffff
jmp 0x417a26
sub eax, esi
sar eax, 1
mov esi, eax
lea edi, [esp + 0x14]
call fcn.00406840
mov eax, esi
mov ecx, ebp
mov edx, edi
call fcn.00407b90
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417a5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x417a6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4