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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575e68
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 2
push eax
mov edx, str.MasterPDF_
lea ecx, [ebp - 0x48]
call fcn.0041bb30
add esp, 4
mov byte [ebp - 4], 3
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40f9a2
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40f9b7
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40f9b9
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax - 0xc]
test ebx, ebx
je 0x40fa27
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x40f9fe
cmp dword [edi + 0xc], 0
jl 0x40fa18
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x40fa18
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 0x40fa9e
mov dword [ebp - 0x44], eax
jmp 0x41039b
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00405730
mov esi, dword [ebp - 0x10]
jmp 0x40f9fe
lea ecx, [ebp - 0x44]
call fcn.0040c530
push str.MasterPDF
mov byte [ebp - 4], 5
push dword [eax]
lea eax, [ebp - 0x10]
push str._s_s.exe
push eax
call fcn.0041f560
mov byte [ebp - 4], 4
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 0x40fa96
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fa92
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40fa92
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x10]
jmp 0x40fa01
mov ecx, edx
call esi
mov esi, dword [ebp - 0x10]
jmp 0x40fa01
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40fab3
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fac8
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40faca
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push esi
push str._s__d
push eax
call fcn.0041f560
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
push eax
call fcn.00405650
add esp, 0x14
mov dword [ebp - 0x50], eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 7
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40fb17
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fb2c
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40fb2e
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.MasterPDF
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push str.SoftwareClients_s_s.exe
push eax
call fcn.0041f560
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fb54
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 0x59e93c
lea ecx, [ebp - 0x38]
call fcn.00404e80
mov byte [ebp - 4], 9
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40fba1
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fbb6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40fbb8
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
push esi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xa
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]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40fbe0
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 0x40fc10
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 0x40fc40
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 0x40fc70
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 0x40fca6
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fcbb
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40fcbd
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
push esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
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 0x40fd1b
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fcf0
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 0x40fce5
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40fd30
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fd45
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40fd47
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xc
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 0x40fd7b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fd90
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40fd92
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xd
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 0x40fdc0
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 0x40fe1b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fe30
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40fe32
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xe
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 0x40fe60
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 0x40fe9b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40feb0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40feb2
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xf
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 0x40fee0
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 0x40ff1b
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40ff30
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40ff32
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
push edi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
push 0x59e530
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 0x40ff56
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 0x40ff90
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40ffa5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40ffa7
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x40]
push dword [ebp + 8]
push esi
push str.__s____s____1____
push eax
call fcn.0041f560
add esp, 0x10
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40ffdb
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40fff0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40fff2
call edx
add eax, 0x10
mov dword [ebp - 0x44], eax
push edi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x12
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 0x410016
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], 0x11
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410085
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410083
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410083
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x41008b
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x10
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4100c8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4100c6
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4100c6
push 0
push dword [ecx + 4]
call esi
jmp 0x4100c8
call edx
or edi, 0xffffffff
mov byte [ebp - 4], 0xf
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41010d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41010b
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41010b
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call ebx
jmp 0x410113
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xe
mov eax, edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410154
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410150
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410150
push 0
push dword [edx + 4]
call ebx
jmp 0x410154
mov ecx, edx
call esi
mov byte [ebp - 4], 0xd
mov eax, edi
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410195
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410191
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410191
push 0
push dword [edx + 4]
call ebx
jmp 0x410195
mov ecx, edx
call esi
mov byte [ebp - 4], 0xc
mov eax, edi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4101d6
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4101d2
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4101d2
push 0
push dword [edx + 4]
call ebx
jmp 0x4101d6
mov ecx, edx
call esi
mov byte [ebp - 4], 0xb
mov eax, edi
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410217
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410213
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410213
push 0
push dword [edx + 4]
call ebx
jmp 0x410217
mov ecx, edx
call esi
mov byte [ebp - 4], 0xa
mov eax, edi
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410258
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410254
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410254
push 0
push dword [edx + 4]
call ebx
jmp 0x410258
mov ecx, edx
call esi
mov byte [ebp - 4], 9
mov eax, edi
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410299
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410295
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410295
push 0
push dword [edx + 4]
call ebx
jmp 0x410299
mov ecx, edx
call esi
mov byte [ebp - 4], 8
mov eax, edi
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4102da
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4102d6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4102d6
push 0
push dword [edx + 4]
call ebx
jmp 0x4102da
mov ecx, edx
call esi
mov byte [ebp - 4], 7
mov eax, edi
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410319
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410317
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410317
push 0
push dword [ecx + 4]
call ebx
jmp 0x410319
call edx
mov ecx, dword [ebp - 0x50]
mov eax, edi
mov byte [ebp - 4], 6
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410357
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410353
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410353
push 0
push dword [edx + 4]
call ebx
jmp 0x410357
mov ecx, edx
call esi
mov byte [ebp - 4], 4
mov eax, edi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410398
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410394
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410394
push 0
push dword [edx + 4]
call ebx
jmp 0x410398
mov ecx, edx
call esi
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4103dd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4103db
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4103db
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call ebx
jmp 0x4103e3
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410424
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410420
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410420
push 0
push dword [edx + 4]
call ebx
jmp 0x410424
mov ecx, edx
call esi
mov byte [ebp - 4], 1
mov eax, edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x410465
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410461
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410461
push 0
push dword [edx + 4]
call ebx
jmp 0x410465
mov ecx, edx
call esi
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4104a6
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4104a2
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4104a2
push 0
push dword [edx + 4]
call ebx
jmp 0x4104a6
mov ecx, edx
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x4104e8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4104e4
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4104e4
push 0
push dword [edx + 4]
call ebx
jmp 0x4104e8
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