Function at 0x45b3c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fcc8
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.InstallPrinterInfoManager::AddPnPPrinterFromInsDrvIniToShareMem
lea ecx, [ebp - 0x868]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
mov esi, dword [ebp + 8]
cmp ecx, 0x608f30
je 0x45b48a
test byte [ecx + 0x1c], 1
je 0x45b44f
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cd87c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x51
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x45b48a
test byte [ecx + 0x1c], 1
je 0x45b48a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5cd87c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x52
call fcn.004018a0
add esp, 0x10
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x45ba1e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x874], edi
mov byte [ebp - 4], 1
sub esi, 1
je 0x45b560
mov dword [0x6183ec], 1
mov byte [ebp - 0x864], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x45b50a
test byte [ecx + 0x1c], 1
je 0x45b50a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0x80010001
cmovae eax, dword [0x608f54]
mov edx, 0x5cd87c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x53
call fcn.004018a0
add esp, 0x10
mov dword [0x6183ec], 0x26
mov esi, 0x80010026
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45b535
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x868]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
push 0x7b
lea ecx, [ebp - 0x874]
call fcn.00403020
mov ecx, dword [0x6184f8]
push 0
push 0x3f1
call fcn.004b2fb0
mov edi, dword [ebp - 0x874]
mov ecx, dword [0x6184f8]
push edi
push 0x3f1
call fcn.004b3300
mov eax, dword [0x6184f0]
mov ebx, dword [eax + 8]
add ebx, 0x348
je 0x45b50a
mov eax, dword [ebx + 8]
mov dword [ebp - 0x86c], eax
test eax, eax
je 0x45b50a
lea ecx, [ebp - 0x878]
call fcn.00443080
xor esi, esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x86c], esi
jle 0x45b6d5
nop dword [eax + eax]
push 0x410
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
add esp, 0xc
test esi, esi
js 0x45ba28
cmp esi, dword [ebx + 8]
jge 0x45ba28
mov eax, dword [ebx + 4]
lea ecx, [esi*4]
add eax, ecx
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0x878]
push dword [eax]
call fcn.004439e0
mov eax, dword [0x6184f0]
mov edx, dword [eax + 4]
cmp esi, dword [ebx + 8]
jge 0x45ba28
push 0
mov eax, dword [ebx + 4]
lea ecx, [esi*4]
push 0
push 0
push 0
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0x830]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push eax
push eax
push 0
mov ecx, edx
call fcn.004fdf90
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x45b6c8
test byte [edx + 0x1c], 4
je 0x45b6c8
cmp esi, dword [ebx + 8]
jge 0x45ba28
mov eax, dword [ebx + 4]
lea ecx, [esi*4]
add eax, ecx
mov ecx, 0x608f54
cmp dword [0x608f68], 8
cmovae ecx, dword [0x608f54]
push dword [eax]
push ecx
push dword [edx + 0x14]
mov ecx, 0x54
push dword [edx + 0x10]
mov edx, 0x5cd87c
call fcn.00405920
add esp, 0x10
inc esi
cmp esi, dword [ebp - 0x86c]
jl 0x45b5e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
movaps xmm0, xmmword [0x5e74c0]
add esp, 0x18
mov dword [ebp - method.CCommandLineInfo.virtual_0], vtable.CMap_class_ATL::CStringT_unsigned_short_int__class_StrTraitMFC_unsigned_short_int__class_ATL::ChTraitsCRT_unsigned_short_int_____unsigned_short_int_const___unsigned_char___unsigned_char__.0
movups xmmword [ebp - 0x898], xmm0
mov dword [ebp - 0x888], 0
mov dword [ebp - 0x884], 0xa
mov byte [ebp - 4], 3
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 0
call fcn.00407360
mov dword [ebp - 0x880], eax
mov dword [ebp - 0x8a0], 0
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 4
call fcn.004068b0
lea eax, [ebp - 0x8a0]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45b7de
mov byte [ebp - 0x864], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x45ba01
test byte [ecx + 0x1c], 1
je 0x45ba01
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cd87c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x55
call fcn.004018a0
add esp, 0x10
jmp 0x45ba01
push 0
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x86c], 0
push eax
push str.SourcePath
lea ecx, [ebp - 0x8a0]
call fcn.00406aa0
test eax, eax
je 0x45b85b
mov byte [ebp - 0x864], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x45ba01
test byte [ecx + 0x1c], 1
je 0x45ba01
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cd87c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x56
call fcn.004018a0
add esp, 0x10
jmp 0x45ba01
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebp - 0x86c]
lea ecx, [ebp - 0x870]
call fcn.00403320
mov byte [ebp - 4], 5
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x45ba2d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x86c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x45b8c1
movzx eax, ax
lea ecx, [ebp - 0x86c]
push eax
call fcn.00403020
jmp 0x45b8f2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b8d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x86c]
call fcn.00403bb0
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 7
call fcn.00409a60
lea ecx, [ebp - 0x86c]
call fcn.00409a60
mov esi, dword [ebp - 0x86c]
test esi, esi
je 0x45b93f
mov eax, dword [ebp - 0x870]
cmp dword [eax - 0xc], 0
jl 0x45b93f
push esi
push eax
call fcn.00570be3
add esp, 8
test eax, eax
je 0x45b93f
mov ecx, dword [ebp - 0x870]
sub eax, ecx
sar eax, 1
js 0x45b93f
push ecx
jmp 0x45b966
lea eax, [ebp - 0x218]
push eax
push str._sOPTIONSINSTALL_
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0041e030
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [0x6184f0]
push str.SOURCEPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov byte [ebp - 0x864], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x45b9c2
test byte [ecx + 0x1c], 1
je 0x45b9c2
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cd87c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x57
call fcn.004018a0
add esp, 0x10
or ebx, 0xffffffff
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45b9e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x870]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ba01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x8a0]
call fcn.004067f0
lea ecx, [ebp - 0x878]
call fcn.00443150
xor esi, esi
jmp 0x45b519
push 0x80004005
call fcn.004013a0
call fcn.005511b9
push 0x80004005
call fcn.004013a0
int3