Function at 0x10154890
Capabilities:
Get file attributes
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x428], 3
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x438], edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101548ea
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2f
call fcn.10003680
add esp, 4
test eax, eax
je 0x10154909
lea ecx, [ebp - 0x430]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push ebx
call eax
jmp 0x1015491c
lea eax, [ebp - 0x430]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test esi, esi
je 0x10154929
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
test ebx, ebx
jne 0x10154e06
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x434], 0x208
mov ebx, dword [ebp - 0x430]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1015497f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push 0x104
test eax, eax
je 0x101549a4
lea ecx, [ebp - 0x414]
push ecx
push dword [ebp - 0x424]
push ebx
call eax
jmp 0x101549b8
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x424]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test esi, esi
je 0x101549c5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x10154dc3
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x438]
push str.CLSID_sInprocServer32
push eax
call fcn.10002cb0
mov edi, dword [ebp - 0x438]
lea eax, [ebp - 0x434]
add esp, 0x18
mov dword [ebp - 0x434], 0x208
push 0x20219
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x10202940
push edi
push SysReAllocString
call fcn.100585c0
test eax, eax
jne 0x10154db8
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x10154a55
cmp eax, 2
je 0x10154a55
cmp eax, 7
jne 0x10154db8
push 0x650
call sub.msvcrt.dll_malloc
mov esi, eax
add esp, 4
mov dword [ebp - 0x420], esi
test esi, esi
je 0x10154dc3
push 0x650
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x440]
lea ecx, [esi + 8]
mov dword [esi + 4], 0x10
add esp, 0xc
mov dword [esi + 0x624], eax
mov edx, 0x104
mov dword [esi + 0x628], 0x10205870
lea esi, [ebp - 0x414]
sub esi, ecx
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10154ad0
movzx eax, word [esi + ecx]
test ax, ax
je 0x10154ad0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10154ab0
jmp 0x10154ad4
test edx, edx
jne 0x10154ad7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea esi, [eax + 0x10]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], esi
test eax, 0xffff0000
jne 0x10154c1e
push 0
mov ecx, 0x1025bea0
call fcn.101beff4
mov ebx, eax
mov dword [ebp - 0x42c], 1
test ebx, ebx
je 0x10154c4f
lea ecx, [ebp - 0x20c]
movzx eax, cx
shr eax, 4
inc eax
mov dword [ebp - 0x418], eax
push 0
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10154b5d
lea edx, [ebp - 0x20c]
movzx ecx, dx
push ecx
push eax
push ebx
call fcn.10003980
add esp, 0xc
test eax, eax
jne 0x10154b85
push dword [ebp - 0x42c]
mov ecx, 0x1025bea0
call fcn.101beff4
inc dword [ebp - 0x42c]
mov ebx, eax
test ebx, ebx
je 0x10154c4f
mov eax, dword [ebp - 0x418]
jmp 0x10154b35
test ebx, ebx
je 0x10154c4f
push 6
push dword [ebp - 0x418]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10154c4f
lea edx, [ebp - 0x20c]
movzx ecx, dx
push ecx
push eax
push ebx
call fcn.10003980
add esp, 0xc
mov dword [ebp - 0x418], eax
test eax, eax
je 0x10154c4f
movzx ecx, word [eax]
mov eax, dword [esi - 8]
mov ebx, ecx
mov edx, ecx
sub eax, ebx
mov ecx, 1
sub ecx, dword [esi - 4]
or ecx, eax
jge 0x10154bfb
push ebx
lea ecx, [ebp - 0x41c]
call fcn.10003310
mov eax, dword [ebp - 0x418]
mov esi, dword [ebp - 0x41c]
movzx edx, word [eax]
jmp 0x10154c01
mov eax, dword [ebp - 0x418]
movzx ecx, dx
add eax, 2
push ecx
push eax
push ebx
push esi
call fcn.101eb860
add esp, 0x10
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
jmp 0x10154c4f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10154c27
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x41c]
call fcn.10003740
mov esi, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.101565c0
mov ecx, dword [ebp - 0x420]
mov edx, 0x104
add ecx, 0x210
mov ebx, dword [eax]
jmp 0x10154c80
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10154ca2
movzx eax, word [ebx]
test ax, ax
je 0x10154ca2
mov word [ecx], ax
add ebx, 2
add ecx, 2
sub edx, 1
jne 0x10154c80
jmp 0x10154ca6
test edx, edx
jne 0x10154ca9
sub ecx, 2
xor eax, eax
or ebx, 0xffffffff
mov word [ecx], ax
mov eax, ebx
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10154cce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10154ce5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x420]
add ebx, 0x210
je 0x10154daa
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10154d0d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x10154d20
call eax
jmp 0x10154d26
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x10154d33
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x10154daa
test bl, 0x10
jne 0x10154daa
mov ebx, dword [ebp - 0x420]
lea eax, [ebx + 0x210]
push eax
call fcn.10154e30
mov ecx, dword [ebp - 0x43c]
add esp, 4
mov dword [ebx + 0x620], eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x10
push eax
lea ecx, [ecx + 4]
call fcn.101547d0
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ecx
je 0x10154d90
mov dword [ecx], ebx
add dword [eax + 4], 4
inc dword [ebp - 0x424]
jmp 0x10154963
lea edx, [ebp - 0x420]
push edx
push ecx
mov ecx, eax
call fcn.100cc490
inc dword [ebp - 0x424]
jmp 0x10154963
push dword [ebp - 0x420]
call sub.msvcrt.dll_free
add esp, 4
inc dword [ebp - 0x424]
jmp 0x10154963
mov ebx, dword [ebp - 0x430]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10154ddf
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x10154df2
call eax
jmp 0x10154df8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10154e03
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10154e1b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4