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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576448
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5c4104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x14], ecx
push str.MasterPDF_2d3d
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00404e80
mov byte [ebp - 4], 1
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x41055b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410570
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410572
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0xc]
test ebx, ebx
je 0x4105e0
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x4105b7
cmp dword [edi + 0xc], 0
jl 0x4105d1
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x4105d1
push ecx
call fcn.00405650
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.00407070
add esi, 0x10
mov dword [ebp - 0x10], esi
or edi, 0xffffffff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410657
mov dword [ebp - 0x44], eax
jmp 0x410f58
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00405730
mov esi, dword [ebp - 0x10]
jmp 0x4105b7
lea ecx, [ebp - 0x44]
call fcn.0040c530
push str.MasterPDF
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x10]
push str._s_s.exe
push eax
call fcn.0041f560
mov byte [ebp - 4], 2
add esp, 0x10
mov ecx, dword [ebp - 0x44]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41064f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41064b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41064b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x10]
jmp 0x4105ba
mov ecx, edx
call esi
mov esi, dword [ebp - 0x10]
jmp 0x4105ba
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x41066c
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410681
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410683
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push str._s_3
push eax
call fcn.0041f560
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
push eax
call fcn.00405650
add esp, 0x10
mov dword [ebp - 0x50], eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 5
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4106cd
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4106e2
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4106e4
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.MasterPDF
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push str.SoftwareClients_s_s.exe
push eax
call fcn.0041f560
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410710
mov esi, dword [ebp - 0x18]
sub ecx, edx
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push esi
push dword [ebp - 0x14]
call edi
push 0x59e95c
lea ecx, [ebp - 0x38]
call fcn.00404e80
mov byte [ebp - 4], 7
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x41075d
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410772
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410774
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 8
push str._sCapabilities
push eax
call fcn.0041f560
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4107a0
sub edx, esi
mov esi, dword [ebp - 0x34]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ApplicationDescription
push esi
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x1c]
mov edx, eax
lea edi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4107d0
sub edx, edi
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ApplicationIcon
push esi
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x38]
mov edx, eax
lea edi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x410800
sub edx, edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push str.ApplicationName
push esi
push dword [ebp - 0x14]
call edi
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410830
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push ebx
push str.SOFTWARERegisteredApplications
push dword [ebp - 0x14]
call edi
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x410866
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41087b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x41087d
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
push esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 9
push str._sFileAssociations
push eax
call fcn.0041f560
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov edi, dword [eax + 4]
mov esi, dword [eax]
cmp esi, edi
je 0x4108db
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4108b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push dword [esi]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esi, 4
cmp esi, edi
jne 0x4108a5
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4108f0
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410905
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410907
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
push edi
push str._sInstallInfo
push eax
call fcn.0041f560
add esp, 0xc
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x41093b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410950
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410952
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x10]
push esi
push str.__s___HideShortcuts
push eax
call fcn.0041f560
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edx, eax
lea ebx, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x410980
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 - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 1
push eax
push 4
push str.IconsVisible
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4109db
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4109f0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4109f2
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xc
push str.__s___SetAsDefaultAppGlobal
push eax
call fcn.0041f560
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 0x410a20
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 - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x410a5b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410a70
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410a72
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xd
push str.__s___ShowShortcuts
push eax
call fcn.0041f560
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 0x410aa0
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 - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x410adb
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410af0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410af2
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
push edi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
push 0x59e550
push eax
call fcn.0041f560
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 0x410b16
sub edx, ebx
mov ebx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x410b50
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410b65
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410b67
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xf
push str.__s___2d3d____1____
push eax
call fcn.0041f560
add esp, 0xc
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x410b98
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410bad
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x410baf
call edx
add eax, 0x10
mov dword [ebp - 0x44], eax
push edi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x10
push str._s_shellopencommand
push eax
call fcn.0041f560
mov edi, dword [ebp - 0x40]
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410bd3
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 - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x44], 1
add esi, 0xfffffff0
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410c42
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410c40
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410c40
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x410c48
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xe
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410c85
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410c83
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410c83
push 0
push dword [ecx + 4]
call esi
jmp 0x410c85
call edx
or edi, 0xffffffff
mov byte [ebp - 4], 0xd
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x410cca
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410cc8
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410cc8
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call ebx
jmp 0x410cd0
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xc
mov eax, edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410d11
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410d0d
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410d0d
push 0
push dword [edx + 4]
call ebx
jmp 0x410d11
mov ecx, edx
call esi
mov byte [ebp - 4], 0xb
mov eax, edi
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410d52
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410d4e
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410d4e
push 0
push dword [edx + 4]
call ebx
jmp 0x410d52
mov ecx, edx
call esi
mov byte [ebp - 4], 0xa
mov eax, edi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410d93
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410d8f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410d8f
push 0
push dword [edx + 4]
call ebx
jmp 0x410d93
mov ecx, edx
call esi
mov byte [ebp - 4], 9
mov eax, edi
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410dd4
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410dd0
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410dd0
push 0
push dword [edx + 4]
call ebx
jmp 0x410dd4
mov ecx, edx
call esi
mov byte [ebp - 4], 8
mov eax, edi
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410e15
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410e11
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410e11
push 0
push dword [edx + 4]
call ebx
jmp 0x410e15
mov ecx, edx
call esi
mov byte [ebp - 4], 7
mov eax, edi
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410e56
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410e52
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410e52
push 0
push dword [edx + 4]
call ebx
jmp 0x410e56
mov ecx, edx
call esi
mov byte [ebp - 4], 6
mov eax, edi
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410e97
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410e93
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410e93
push 0
push dword [edx + 4]
call ebx
jmp 0x410e97
mov ecx, edx
call esi
mov byte [ebp - 4], 5
mov eax, edi
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410ed6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410ed4
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410ed4
push 0
push dword [ecx + 4]
call ebx
jmp 0x410ed6
call edx
mov ecx, dword [ebp - 0x50]
mov eax, edi
mov byte [ebp - 4], 4
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410f14
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410f10
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410f10
push 0
push dword [edx + 4]
call ebx
jmp 0x410f14
mov ecx, edx
call esi
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410f55
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410f51
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410f51
push 0
push dword [edx + 4]
call ebx
jmp 0x410f55
mov ecx, edx
call esi
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410f9a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410f98
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410f98
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call ebx
jmp 0x410fa0
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410fe1
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410fdd
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410fdd
push 0
push dword [edx + 4]
call ebx
jmp 0x410fe1
mov ecx, edx
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x411023
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41101f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41101f
push 0
push dword [edx + 4]
call ebx
jmp 0x411023
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