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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5620f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5ad124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40b7bc
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b7d1
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40b7d3
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 0x40b841
lea ecx, [eax - 0x10]
lea esi, [edi - 0x10]
cmp ecx, esi
je 0x40b815
cmp dword [esi + 0xc], 0
jl 0x40b832
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x40b832
push ecx
call fcn.00405420
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00406e40
add edi, 0x10
mov dword [ebp - 0x14], edi
or ebx, 0xffffffff
mov esi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b8c4
mov dword [ebp - 0x44], eax
jmp 0x40c15a
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00405500
mov edi, dword [ebp - 0x14]
jmp 0x40b815
lea ecx, [ebp - 0x44]
call fcn.00408ed0
push str.MasterPDF
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push str._s_s.exe
push eax
call fcn.00415680
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 0x40b8bc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b8b0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40b8b0
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
jmp 0x40b818
mov ecx, edx
call esi
mov edi, dword [ebp - 0x14]
jmp 0x40b818
mov edi, dword [ebp - 0x14]
jmp 0x40b81b
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40b8d9
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b8ee
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40b8f0
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push str._s_1
push eax
call fcn.00415680
add esp, 0xc
mov ecx, str.PdfRecommand
test esi, esi
mov eax, str.MasterPDF
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.00404c40
mov byte [ebp - 4], 4
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40b93d
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b952
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40b954
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
push eax
push eax
lea eax, [ebp - 0x3c]
push str.SoftwareClients_s_s.exe
push eax
call fcn.00415680
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40b980
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]
cmp dword [ebp - 0x18], 0
mov ecx, str.pdfMaterReader
mov eax, 0x588b40
cmove eax, ecx
lea ecx, [ebp - 0x38]
push eax
call fcn.00404c40
mov byte [ebp - 4], 6
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40b9d8
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40b9ed
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40b9ef
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.00415680
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 0x40ba13
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 - 0x20]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x44], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40ba46
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 0x40ba77
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40baa2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push dword [ebp - 0x1c]
push str.SOFTWARERegisteredApplications
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40bade
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40baf3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40baf5
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.00415680
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bb20
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.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40bb5c
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bb71
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40bb73
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.00415680
add esp, 0xc
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40bba4
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bbb9
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40bbbb
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.00415680
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bbe0
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.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40bc3b
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bc50
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40bc52
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.00415680
mov eax, dword [ebp - 0x24]
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 0x40bc80
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.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40bcbb
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bcd0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40bcd2
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xc
push str.__s___ShowShortcuts
push eax
call fcn.00415680
mov eax, dword [ebp - 0x18]
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 0x40bd00
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.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40bd3b
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bd50
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40bd52
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.00415680
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bd76
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.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40bdb0
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bdc5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40bdc7
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.00415680
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 0x40bdf0
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 0x40be5f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40be5d
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40be5d
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x40be65
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 0x40bea2
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bea0
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40bea0
push 0
push dword [ecx + 4]
call esi
jmp 0x40bea2
call edx
mov byte [ebp - 4], 0xb
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x18]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40beeb
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bee7
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40bee7
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call eax
jmp 0x40beeb
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 0x40bf30
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bf2c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40bf2c
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40bf30
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 0x40bf75
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bf71
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40bf71
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40bf75
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 0x40bfba
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bfb6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40bfb6
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40bfba
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 0x40bfff
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40bffb
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40bffb
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40bfff
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 0x40c044
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c040
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c040
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40c044
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 0x40c089
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c085
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c085
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40c089
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 0x40c0ce
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c0ca
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c0ca
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40c0ce
mov ecx, edx
call esi
mov byte [ebp - 4], 3
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40c113
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c10f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c10f
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40c113
mov ecx, edx
call esi
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40c15a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c156
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c156
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call esi
jmp 0x40c160
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 0x40c19c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c19a
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c19a
push 0
push dword [ecx + 4]
call esi
jmp 0x40c19c
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 0x40c1e2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40c1de
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40c1de
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40c1e2
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