Function at 0x5823e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d343d
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x638fe4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x6441ac]
mov eax, 0x2aaaaaab
sub ecx, dword [0x6441a8]
mov esi, dword [ebp + 8]
mov ebx, esi
imul ecx
mov dword [ebp - 0x24c], esi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x28c], esi
shr eax, 0x1f
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], 0x644170
mov byte [ebp - 0x22d], 1
add eax, edx
jne 0x58266a
push esi
push eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.005832c0
test al, al
jne 0x58249f
push 0x62e4b0
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0x226
push eax
call fcn.005479aa
push 0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
call dword [0x643b80]
test al, al
jne 0x5824e8
push 0x62e4b0
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0x233
push eax
call fcn.005479aa
push dword [ebp - 0x248]
mov ecx, 0x6441a8
call fcn.00405a90
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebp - 0x248]
cmp esi, eax
jae 0x58258d
mov eax, dword [ebp - 0x244]
mov edx, dword [eax + esi*4]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp byte [edx], 0
jne 0x58253b
xor ecx, ecx
jmp 0x582549
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x582540
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x22c]
call fcn.00406300
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x6441a8
call fcn.00405ae0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x582587
inc eax
push eax
push dword [ebp - 0x22c]
call fcn.00406720
inc esi
jmp 0x582500
mov ecx, dword [0x643b28]
test ecx, ecx
je 0x5825bf
push eax
push dword [ebp - 0x244]
call ecx
test al, al
jne 0x5825bf
push 0x62e4b0
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x242
push eax
call fcn.005479aa
mov al, byte [ebp - 0x234]
mov ecx, dword [0x6441ac]
sub ecx, dword [0x6441a8]
mov byte [ebp - 0x234], al
lea eax, [ebp - 0x234]
push eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [0x6441a8]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x6441ac]
push eax
call fcn.00406e20
mov esi, dword [ebp - 0x24c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x582650
sub esp, 8
push 0
call fcn.00583250
cmp byte [ebp - 0x22d], 0
jne 0x58266a
xor al, al
jmp 0x583231
mov ecx, dword [0x643bf0]
xor eax, eax
mov dword [ebp - 0x26c], 0
test ecx, ecx
je 0x58269a
cmp ebx, 0x9fbf1
push 0x2000000
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
push eax
mov edx, esi
lea ecx, [ebp - 0x23c]
call fcn.005b5f80
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
cmp dword [eax - 0xc], 0
jne 0x58316f
mov edi, dword [0x6441ac]
mov eax, 0x2aaaaaab
mov esi, dword [0x6441a8]
mov ecx, edi
sub ecx, esi
imul ecx
mov ecx, dword [0x643bf4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test ecx, ecx
je 0x58271a
push eax
xor eax, eax
cmp dword [ebp - 0x258], 0x9fbf1
push 0x200ffff
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
mov edi, dword [0x6441ac]
mov esi, dword [0x6441a8]
cmp esi, edi
je 0x5827be
or ebx, 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x58272f
mov eax, dword [esi]
jmp 0x582731
mov eax, esi
push eax
lea ecx, [ebp - 0x250]
call fcn.00406070
mov edi, dword [ebp - 0x26c]
lea edx, [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
push edi
mov byte [ebp - 4], 4
call fcn.0058b6e0
add esp, 4
test eax, eax
je 0x582767
inc edi
mov dword [ebp - 0x26c], edi
mov byte [ebp - 4], 3
mov eax, ebx
mov ecx, dword [ebp - 0x250]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5827af
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5827ab
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5827ab
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5827af
mov ecx, edx
call edi
add esi, 0x18
cmp esi, dword [0x6441ac]
jne 0x582725
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x5827d3
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5827e8
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5827ea
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x258], ebx
mov byte [ebp - 4], 5
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x58280c
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582821
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x582823
call edx
add eax, 0x10
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 6
push eax
push 0x20019
push 0
push str.SOFTWARECanonMSETUP4LatestDevice
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x254], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x58286d
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582882
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x582884
call edx
add eax, 0x10
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 7
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x5828a6
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5828bb
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5828bd
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x268], edi
mov byte [ebp - 4], 8
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x5828df
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5828f4
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5828f6
call edx
add eax, 0x10
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x254]
mov edx, str.MS_INSTDATE
push eax
call fcn.005b0e00
mov esi, dword [ebp - 0x24c]
lea ecx, [ebp - 0x260]
push 0xa0010
mov edx, esi
call fcn.005b5f80
add esp, 8
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x260]
test eax, eax
jne 0x58294d
push 0x80004005
call fcn.00402650
mov ecx, eax
mov eax, dword [ebp - 0x244]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x58297b
test dx, dx
je 0x582977
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x58297b
add eax, 4
add ecx, 4
test dx, dx
jne 0x582955
xor eax, eax
jmp 0x582980
sbb eax, eax
or eax, 1
test eax, eax
je 0x582c9b
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x258]
push eax
mov edx, str.DEVICEID
call fcn.005b0e00
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x240]
add esp, 4
mov dword [ebp - 0x240], 0
push eax
push 0x20019
push 0
push str.SOFTWARECanonMSETUP4InstalledDevice
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebx, dword [ebp - 0x258]
xor esi, esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x100
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x582c83
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x240]
call edi
call fcn.00418413
mov ecx, eax
test ecx, ecx
je 0x5827c9
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582a50
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x582a52
call edx
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x238]
mov edx, str.DEVICENAME
push eax
call fcn.005b0e00
add esp, 4
test ebx, ebx
je 0x5827c9
mov edi, dword [ebp - 0x25c]
mov ecx, ebx
mov eax, edi
jmp 0x582a90
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x582ab6
test dx, dx
je 0x582ab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x582ab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x582a90
xor eax, eax
jmp 0x582abb
sbb eax, eax
or eax, 1
test eax, eax
je 0x582b2e
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], 0
add edi, 0xfffffff0
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x582b16
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582b14
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x582b14
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x582b16
call edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc esi
cmp esi, 0x400
jb 0x5829d4
jmp 0x582c83
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x268]
push eax
mov edx, str.MS_INSTDATE
call fcn.005b0e00
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x250]
push eax
mov edx, str.CATEGORY
call fcn.005b0e00
mov edx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x264]
push 0xa0011
call fcn.005b5f80
add esp, 0xc
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x264]
test esi, esi
jne 0x582b8d
push 0x80004005
call fcn.00402650
mov eax, dword [ebp - 0x268]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x582bbb
test dx, dx
je 0x582bb7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x582bbb
add eax, 4
add ecx, 4
test dx, dx
jne 0x582b95
xor eax, eax
jmp 0x582bc0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x582c4c
or eax, 0xffffffff
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x582c0b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582c09
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x582c09
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x582c11
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0xa
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x582c83
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582c81
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x582c81
push 0
push dword [ecx + 4]
call esi
jmp 0x582c83
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x248]
push eax
mov edx, str.MS_INTERFACE
call fcn.005b0e00
add esp, 4
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x238], 0
jmp 0x582bc8
call edx
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x268]
mov esi, dword [ebp - 0x24c]
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x254], 0
cmp dword [eax - 0xc], 0
je 0x582fb1
mov eax, dword [ebp - 0x250]
mov ecx, 0x60dc00
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x582cf6
test dx, dx
je 0x582cf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x582cf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x582cd0
xor eax, eax
jmp 0x582cfb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x582d66
mov eax, dword [ebp - 0x248]
mov ecx, 0x60dc08
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x582d36
test dx, dx
je 0x582d32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x582d36
add eax, 4
add ecx, 4
test dx, dx
jne 0x582d10
xor eax, eax
jmp 0x582d3b
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x23c]
push ebx
jne 0x582d56
push str.Canon__s
push eax
call fcn.00402e70
add esp, 0xc
jmp 0x582dc7
push str.Canon__s_Network
push eax
call fcn.00402e70
add esp, 0xc
jmp 0x582dc7
push ebx
lea eax, [ebp - 0x23c]
push str.CanoScan__s
push eax
call fcn.00402e70
mov eax, dword [ebp - 0x23c]
add esp, 0xc
mov ecx, str.CanoScan_9000F_II
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x582dac
test dx, dx
je 0x582da8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x582dac
add eax, 4
add ecx, 4
test dx, dx
jne 0x582d86
xor eax, eax
jmp 0x582db1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x582dc7
push 0x16
push str.CanoScan_9000F_Mark_II
lea ecx, [ebp - 0x23c]
call fcn.00403620
mov ecx, dword [0x643bf0]
test ecx, ecx
je 0x582fb1
xor eax, eax
cmp dword [ebp - 0x270], 0x9fbf1
push 0x200ffff
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x240], eax
test ecx, ecx
jle 0x582fb1
lea ecx, [ecx]
add eax, 0x2000001
lea ecx, [ebp - 0x270]
push eax
mov edx, esi
call fcn.005b5f80
add esp, 4
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x270]
test esi, esi
je 0x5827c9
mov eax, dword [ebp - 0x23c]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x582e66
test dx, dx
je 0x582e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x582e66
add eax, 4
add ecx, 4
test dx, dx
jne 0x582e40
xor eax, eax
jmp 0x582e6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x582ed4
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x582eb0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582eae
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x582eae
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x582eb0
call edx
mov eax, dword [ebp - 0x240]
mov esi, dword [ebp - 0x24c]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, dword [ebp - 0x264]
jl 0x582e10
jmp 0x582fb1
mov edx, dword [0x643be0]
test edx, edx
je 0x582f3a
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
xor eax, eax
cmp dword [ebp - 0x284], 0x9fbf1
push 0xa0010
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call edx
mov ecx, dword [0x643be0]
test ecx, ecx
je 0x582f3a
mov eax, dword [edi - 0xc]
inc eax
push eax
xor eax, eax
cmp dword [ebp - 0x288], 0x9fbf1
push edi
setne al
dec eax
and eax, 4
push 0xa0011
push dword [eax + 0x644028]
call ecx
mov ecx, dword [0x643bf4]
test ecx, ecx
je 0x582f70
mov eax, dword [ebp - 0x240]
add eax, 0x2000001
push eax
xor eax, eax
cmp dword [ebp - 0x28c], 0x9fbf1
push 0x2000000
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x582fb1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582faf
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x582faf
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x582fb1
call edx
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x582ffa
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x582ff6
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x582ff6
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x582ffa
mov ecx, edx
call esi
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov ecx, dword [ebp - 0x250]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x583045
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x583041
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x583041
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call esi
jmp 0x58304b
mov ecx, edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 7
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x583088
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x583086
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x583086
push 0
push dword [ecx + 4]
call esi
jmp 0x583088
call edx
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov ecx, dword [ebp - 0x244]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5830d3
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5830cf
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5830cf
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5830d3
mov ecx, edx
call esi
mov byte [ebp - 4], 5
mov eax, edi
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x58311d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x583119
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x583119
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call esi
jmp 0x583123
mov ecx, edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 3
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x583166
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x583164
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x583164
push 0
push dword [ecx + 4]
call esi
cmp dword [ebp - 0x26c], 0
jmp 0x583186
call edx
cmp dword [ebp - 0x26c], 0
jmp 0x583186
push 0
lea edx, [ebp - 0x23c]
mov ecx, esi
call fcn.0058b6e0
add esp, 4
or edi, 0xffffffff
test eax, eax
jne 0x5831e0
mov cl, byte [0x6441e0]
mov eax, 0x9e600
mov dword [0x6441b4], eax
cmp cl, 0xc
je 0x5831b0
cmp cl, 0xd
je 0x5831b0
mov edx, eax
xor ecx, ecx
call fcn.0056c650
mov eax, dword [0x6441b4]
cmp byte [0x6441cc], 0
mov dword [0x6441b8], eax
mov dword [0x6441b4], 0
je 0x5831d3
mov eax, dword [0x643b30]
test eax, eax
je 0x5831d3
call eax
mov word [0x6441cc], 0
xor bl, bl
jmp 0x5831e6
mov bl, byte [ebp - 0x22d]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x58322f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x58322b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x58322b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x58322f
mov ecx, edx
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544774
mov esp, ebp
pop ebp
ret 4