Function at 0x46b410
Capabilities:
Check if file exists
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542488
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b457
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b46c
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b46e
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0xc]
test ebx, ebx
je 0x46b4d9
lea ecx, [eax - 0x10]
lea esi, [edi - 0x10]
cmp ecx, esi
je 0x46b4b0
cmp dword [esi + 0xc], 0
jl 0x46b4ca
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x46b4ca
push ecx
call fcn.00406f70
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00408130
add edi, 0x10
mov dword [ebp - 0x14], edi
or ebx, 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b554
mov dword [ebp - 0x44], eax
jmp 0x46bdca
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.004078f0
mov edi, dword [ebp - 0x14]
jmp 0x46b4b0
lea ecx, [ebp - 0x44]
call fcn.00468d10
push str.MasterPDF
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_s.exe
push eax
call fcn.004232b0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x44]
add esp, 0x10
add ecx, 0xfffffff0
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46b54c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b548
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46b548
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
jmp 0x46b4b3
mov ecx, edx
call esi
mov edi, dword [ebp - 0x14]
jmp 0x46b4b3
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b569
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b57e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b580
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push str._s_1
push eax
call fcn.004232b0
add esp, 0xc
lea ecx, [ebp - 0x18]
push str.MasterPDF
call fcn.00407ab0
mov byte [ebp - 4], 4
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b5c2
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b5d7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b5d9
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
push eax
push eax
lea eax, [ebp - 0x3c]
push str.SoftwareClients_s_s.exe
push eax
call fcn.004232b0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b601
sub edx, esi
mov esi, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x562f5c
lea ecx, [ebp - 0x38]
call fcn.00407ab0
mov byte [ebp - 4], 6
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b64c
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b661
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b663
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
push str._sCapabilities
push eax
call fcn.004232b0
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b687
sub edx, ebx
mov ebx, dword [ebp - 0x34]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ApplicationDescription
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x44], ecx
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b6c0
sub edx, dword [ebp - 0x44]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ApplicationIcon
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x38]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x44], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b6f1
sub edx, dword [ebp - 0x44]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ApplicationName
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b720
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push dword [ebp - 0x18]
push str.SOFTWARERegisteredApplications
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b75c
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b771
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b773
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
push ebx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 8
push str._sFileAssociations
push eax
call fcn.004232b0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b797
sub edx, ebx
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str..pdf
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b7d3
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b7e8
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b7ea
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
push esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push str._sInstallInfo
push eax
call fcn.004232b0
add esp, 0xc
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b81b
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b830
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b832
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push str.__s___HideShortcuts
push eax
call fcn.004232b0
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b856
sub edx, ebx
mov ebx, dword [ebp - 0x2c]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.HideIconsCommand
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 1
push eax
push 4
push str.IconsVisible
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b8b1
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b8c6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b8c8
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xb
push str.__s___SetAsDefaultAppGlobal
push eax
call fcn.004232b0
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x44], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b8f0
sub edx, dword [ebp - 0x44]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ReinstallCommand
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b92b
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b940
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b942
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push str.__s___ShowShortcuts
push eax
call fcn.004232b0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x44], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b970
sub edx, dword [ebp - 0x44]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ShowIconsCommand
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46b9ab
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46b9c0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46b9c2
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xd
push str._sDefaultIcon
push eax
call fcn.004232b0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b9e6
sub edx, ebx
mov ebx, dword [ebp - 0x40]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x46ba20
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46ba35
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x46ba37
call edx
add eax, 0x10
mov dword [ebp - 0x44], eax
push esi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xe
push str._s_shellopencommand
push eax
call fcn.004232b0
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ba60
mov esi, dword [ebp - 0x44]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x44], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46bacf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bacd
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bacd
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x46bad5
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xc
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x46bb12
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bb10
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bb10
push 0
push dword [ecx + 4]
call esi
jmp 0x46bb12
call edx
mov byte [ebp - 4], 0xb
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x20]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bb5b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bb57
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bb57
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call eax
jmp 0x46bb5b
mov ecx, edx
call esi
mov byte [ebp - 4], 0xa
mov eax, ebx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bba0
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bb9c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bb9c
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bba0
mov ecx, edx
call esi
mov byte [ebp - 4], 9
mov eax, ebx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bbe5
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bbe1
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bbe1
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bbe5
mov ecx, edx
call esi
mov byte [ebp - 4], 8
mov eax, ebx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bc2a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bc26
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bc26
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bc2a
mov ecx, edx
call esi
mov byte [ebp - 4], 7
mov eax, ebx
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bc6f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bc6b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bc6b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bc6f
mov ecx, edx
call esi
mov byte [ebp - 4], 6
mov eax, ebx
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bcb4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bcb0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bcb0
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bcb4
mov ecx, edx
call esi
mov byte [ebp - 4], 5
mov eax, ebx
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bcf9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bcf5
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bcf5
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bcf9
mov ecx, edx
call esi
mov byte [ebp - 4], 4
mov eax, ebx
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bd3e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bd3a
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bd3a
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bd3e
mov ecx, edx
call esi
mov byte [ebp - 4], 3
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bd83
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bd7f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bd7f
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46bd83
mov ecx, edx
call esi
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46bdca
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46bdc6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46bdc6
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call esi
jmp 0x46bdd0
mov ecx, edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46be0c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46be0a
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46be0a
push 0
push dword [ecx + 4]
call esi
jmp 0x46be0c
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46be52
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46be4e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46be4e
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46be52
mov ecx, edx
call esi
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret