Function at 0x10003990
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x10012518
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x10019024]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10019024]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x141]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x148], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x249]
push ebx
push ecx
mov byte [esp + 0x250], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push str.SOFTWARE_shipin7
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x10003a4a
push eax
push str.RegOpenKeyEx_fail__Error:_d
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
jmp 0x10003c98
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
je 0x10003a82
push eax
push str.RegQueryInfoKey_fail__Error:_d
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
jmp 0x10003c98
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
jle 0x10003c98
push 0x104
lea edx, [esp + 0x248]
push 0
push edx
mov dword [esp + 0x38], 0x104
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x258]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10003aee
push eax
push str.RegEnumKeyEx_fail__Error:_d
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
jmp 0x10003c89
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x140]
push str.SOFTWARE_shipin7_s
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x34]
push edx
call fcn.10003120
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x35c], 0
call fcn.10003f40
test al, al
jne 0x10003b6c
lea ecx, [esp + 0x13c]
push ecx
push str.GetVisionNodeInfo_fail__path:_s
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0xc
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x35c], 0xffffffff
call fcn.10003ce0
jmp 0x10003c89
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x10003b7b
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x140]
push eax
push str.GetVisionNodeInfo_success__path:_s_Vision:_s
push 5
mov esi, str.SPUPDATE
call fcn.10008cb0
add esp, 0x10
lea ebp, [edi + 0xa4]
push ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
add edi, 0x68
push edx
mov byte [esp + 0x360], 1
call fcn.10006cc0
mov esi, dword [esp + 0x20]
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
test esi, esi
je 0x10003bd4
cmp esi, eax
je 0x10003bda
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x24], ebx
jne 0x10003bf9
lea eax, [esp + 0x38]
push eax
mov ebx, edi
call fcn.10006b90
lea edi, [esp + 0x34]
mov esi, eax
call fcn.10003db0
jmp 0x10003c65
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x10003ccb
call ebx
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x18]
jne 0x10003c16
call ebx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
add ecx, 0x18
call dword [0x100140f0]
test esi, esi
jne 0x10003cd2
call ebx
xor eax, eax
mov edi, dword [esp + 0x24]
cmp edi, dword [eax + 0x18]
jne 0x10003c3f
call ebx
lea eax, [esp + 0x74]
push eax
lea ecx, [edi + 0x50]
call dword [0x100140f0]
test esi, esi
jne 0x10003cd9
call ebx
cmp edi, dword [esi + 0x18]
jne 0x10003c5e
call ebx
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x14], ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x35c], 0xffffffff
call fcn.10003ce0
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
inc ebx
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
jl 0x10003a90
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x338]
xor ecx, esp
call fcn.10010d80
add esp, 0x348
ret
mov eax, dword [esi]
jmp 0x10003c0b
mov eax, dword [esi]
jmp 0x10003c34
mov esi, dword [esi]
jmp 0x10003c57