Function at 0x1004c860
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ec48b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2278
call fcn.100c8100
mov eax, dword [0x10144930]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x2264], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2278], ecx
mov dword [ebp - 0x227c], edx
mov byte [ebp - 0x2241], 1
xor ebx, ebx
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2248], ebx
lea esi, [ebp - 0x2240]
call fcn.1003fc60
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2270], ebx
mov dword [ebp - 0x2260], ebx
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2278]
cmp esi, ebx
jne 0x1004c90c
mov dword [ebp - 0x2284], 0x57
push 0x1012ac78
lea eax, [ebp - 0x2284]
push eax
call fcn.100c80ad
cmp edi, ebx
jne 0x1004c92a
mov ecx, dword [ebp - 0x2264]
push ecx
mov edx, esi
lea ecx, [ebp - 0x2240]
call fcn.1003ffb0
lea edi, [ebp - 0x2240]
mov dword [ebp - 0x2274], edi
mov edx, dword [ebp - 0x227c]
cmp edx, ebx
je 0x1004c984
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x226c], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1004c945
sub eax, dword [ebp - 0x226c]
sar eax, 1
je 0x1004c984
lea eax, [ebp - 0x225c]
push eax
push edi
mov ecx, esi
call fcn.10041340
cmp eax, ebx
je 0x1004c98e
mov dword [ebp - 0x2280], eax
push 0x1012ac78
lea ecx, [ebp - 0x2280]
push ecx
call fcn.100c80ad
mov edx, esi
mov dword [ebp - 0x225c], edx
jmp 0x1004c994
mov edx, dword [ebp - 0x225c]
cmp edx, ebx
je 0x1004ced5
lea eax, [ebp - 0x1618]
push eax
mov ecx, edi
call fcn.10042920
mov byte [ebp - 0x2241], 1
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2248], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2248]
push ecx
push edi
mov edx, str.VALIDATE_CHECK_REGISTRY
mov ecx, dword [ebp - 0x225c]
call fcn.10041340
test eax, eax
je 0x1004c9f5
mov byte [ebp - 0x224b], 1
push 0x1012ae58
lea edx, [ebp - 0x224b]
push edx
call fcn.100c80ad
push 0x800
push ebx
lea eax, [ebp - 0xe18]
push eax
call fcn.100c7d20
add esp, 0xc
push 0x400
push str.root_key
push edi
lea ecx, [ebp - 0xe18]
mov edx, dword [ebp - 0x2248]
call fcn.10041c80
test eax, eax
je 0x1004ca55
push 0x800
push ebx
lea ecx, [ebp - 0xe18]
push ecx
call fcn.100c7d20
push str.INST
push 0x400
lea edx, [ebp - 0xe18]
push edx
call fcn.100c6466
add esp, 0x18
push str.INST
lea eax, [ebp - 0xe18]
push eax
call fcn.100c629b
add esp, 8
test eax, eax
jne 0x1004ca7b
mov ecx, dword [ebp - 0x2264]
mov esi, dword [ecx + 0xc1e0]
jmp 0x1004ca9d
push str.HKCU
lea edx, [ebp - 0xe18]
push edx
call fcn.100c629b
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 0x80000001
push 0x800
push ebx
lea eax, [ebp - 0xe18]
push eax
call fcn.100c7d20
add esp, 0xc
push 0x400
push str.key_path
push edi
lea ecx, [ebp - 0xe18]
mov edx, dword [ebp - 0x2248]
call fcn.10041c80
test eax, eax
je 0x1004caea
mov byte [ebp - 0x224f], 1
push 0x1012ae58
lea ecx, [ebp - 0x224f]
push ecx
call fcn.100c80ad
lea edx, [ebp - 0x2258]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0xe18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1004cb20
mov byte [ebp - 0x224a], bl
push 0x1012ae58
lea ecx, [ebp - 0x224a]
push ecx
call fcn.100c80ad
push 0x200
push ebx
lea edx, [ebp - 0x418]
push edx
call fcn.100c7d20
add esp, 0xc
push 0x100
push str.value_name
push edi
lea ecx, [ebp - 0x418]
mov edx, dword [ebp - 0x2248]
call fcn.10041c80
test eax, eax
je 0x1004cb6d
mov byte [ebp - 0x224c], 1
push 0x1012ae58
lea eax, [ebp - 0x224c]
push eax
call fcn.100c80ad
lea ecx, [ebp - 0x2260]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x2258]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
je 0x1004cba8
mov byte [ebp - 0x224e], bl
push 0x1012ae58
lea ecx, [ebp - 0x224e]
push ecx
call fcn.100c80ad
push 0x200
push ebx
lea edx, [ebp - 0x218]
push edx
call fcn.100c7d20
add esp, 0xc
push 0x100
push str.value
push edi
lea ecx, [ebp - 0x218]
mov edx, dword [ebp - 0x2248]
call fcn.10041c80
test eax, eax
je 0x1004cbf5
mov byte [ebp - 0x2250], 1
push 0x1012ae58
lea eax, [ebp - 0x2250]
push eax
call fcn.100c80ad
push 0x200
push ebx
lea ecx, [ebp - 0x618]
push ecx
call fcn.100c7d20
add esp, 0xc
push 0x100
push str.value_type
push edi
lea ecx, [ebp - 0x618]
mov edx, dword [ebp - 0x2248]
call fcn.10041c80
test eax, eax
je 0x1004cc55
push 0x200
push ebx
lea edx, [ebp - 0x618]
push edx
call fcn.100c7d20
push str.REG_SZ
push 0x100
lea eax, [ebp - 0x618]
push eax
call fcn.100c6466
add esp, 0x18
push str.REG_DWORD
lea ecx, [ebp - 0x618]
push ecx
call fcn.100c629b
add esp, 8
test eax, eax
jne 0x1004ccd1
mov dword [ebp - 0x2260], 4
lea edx, [ebp - 0x2260]
push edx
lea eax, [ebp - 0x2270]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x2258]
push edx
call esi
test eax, eax
je 0x1004ccad
mov byte [ebp - 0x2241], bl
mov dword [ebp - 4], 1
jmp 0x1004cd57
lea edx, [ebp - 0x218]
call fcn.10045450
cmp eax, dword [ebp - 0x2270]
sete byte [ebp - 0x2241]
mov dword [ebp - 4], 1
jmp 0x1004cd57
mov dword [ebp - 0x2260], 0x800
lea eax, [ebp - 0x2260]
push eax
lea ecx, [ebp - 0xe18]
push ecx
push ebx
push ebx
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x2258]
push eax
call esi
test eax, eax
je 0x1004cd0e
mov byte [ebp - 0x2241], bl
mov dword [ebp - 4], 1
jmp 0x1004cd57
lea ecx, [ebp - 0xe18]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.100c629b
add esp, 8
test eax, eax
sete byte [ebp - 0x2241]
mov dword [ebp - 4], 1
jmp 0x1004cd57
mov eax, dword [ebp - 0x2258]
cmp eax, ebx
je 0x1004cd68
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2248]
cmp eax, ebx
je 0x1004cd80
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 0x2248], ebx
cmp byte [ebp - 0x2241], bl
jne 0x1004cd9f
mov byte [ebp - 0x2252], bl
push 0x1012ae58
lea eax, [ebp - 0x2252]
push eax
call fcn.100c80ad
lea ecx, [ebp - 0x2248]
push ecx
push edi
mov edx, str.VALIDATE_CHECK_FILE
mov ecx, dword [ebp - 0x225c]
call fcn.10041340
test eax, eax
je 0x1004cdd3
mov byte [ebp - 0x2254], 1
push 0x1012ae58
lea edx, [ebp - 0x2254]
push edx
call fcn.100c80ad
push 0x800
push ebx
lea eax, [ebp - 0xe18]
push eax
call fcn.100c7d20
add esp, 0xc
push 0x400
push str.target
push edi
lea ecx, [ebp - 0xe18]
mov edx, dword [ebp - 0x2248]
call fcn.10041c80
test eax, eax
je 0x1004ce20
mov byte [ebp - 0x2249], 1
push 0x1012ae58
lea ecx, [ebp - 0x2249]
push ecx
call fcn.100c80ad
lea eax, [ebp - 0xe18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1004ce30
sub eax, edx
sar eax, 1
jne 0x1004ce59
mov byte [ebp - 0x2253], 1
push 0x1012ae58
lea edx, [ebp - 0x2253]
push edx
call fcn.100c80ad
push 0x200
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.100c7d20
add esp, 0xc
push ebx
push 0x100
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0xe18]
push edx
mov ecx, dword [ebp - 0x2264]
call fcn.10047910
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne byte [ebp - 0x2241]
mov dword [ebp - 4], ebx
jmp 0x1004cf68
mov byte [ebp - 0x2251], 1
push 0x1012ae58
lea edx, [ebp - 0x2251]
push edx
call fcn.100c80ad
mov ecx, dword [ebp - 0x2288]
xor ebx, ebx
cmp ecx, ebx
jne 0x1004cf02
mov byte [ebp - 0x2241], 1
jmp 0x1004cf25
mov byte [ebp - 0x2241], bl
mov eax, dword [ebp - 0x227c]
cmp eax, ebx
je 0x1004cf25
push eax
push str.__s__is_not_valid
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 8
mov dword [ebp - 4], ebx
mov eax, 0x1004cf66
ret
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x225c]
cmp eax, ebx
je 0x1004cf86
cmp eax, dword [ebp - 0x2278]
je 0x1004cf86
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 0x2248]
cmp eax, ebx
je 0x1004cf98
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2240]
call fcn.1003fcf0
mov al, byte [ebp - 0x2241]
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.100c59be
mov esp, ebp
pop ebp
ret 8