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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52143b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2278
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
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.00495e90
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 0x484a8c
mov dword [ebp - 0x2284], 0x57
push 0x5814b0
lea eax, [ebp - 0x2284]
push eax
call fcn.004fd5a3
cmp edi, ebx
jne 0x484aaa
mov ecx, dword [ebp - 0x2264]
push ecx
mov edx, esi
lea ecx, [ebp - 0x2240]
call fcn.004961e0
lea edi, [ebp - 0x2240]
mov dword [ebp - 0x2274], edi
mov edx, dword [ebp - 0x227c]
cmp edx, ebx
je 0x484b04
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x226c], ecx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x484ac5
sub eax, dword [ebp - 0x226c]
sar eax, 1
je 0x484b04
lea eax, [ebp - 0x225c]
push eax
push edi
mov ecx, esi
call fcn.004976b0
cmp eax, ebx
je 0x484b0e
mov dword [ebp - 0x2280], eax
push 0x5814b0
lea ecx, [ebp - 0x2280]
push ecx
call fcn.004fd5a3
mov edx, esi
mov dword [ebp - 0x225c], edx
jmp 0x484b14
mov edx, dword [ebp - 0x225c]
cmp edx, ebx
je 0x485055
lea eax, [ebp - 0x1618]
push eax
mov ecx, edi
call fcn.00498d20
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.004976b0
test eax, eax
je 0x484b75
mov byte [ebp - 0x224b], 1
push 0x581600
lea edx, [ebp - 0x224b]
push edx
call fcn.004fd5a3
push 0x800
push ebx
lea eax, [ebp - 0xe18]
push eax
call fcn.004fd670
add esp, 0xc
push 0x400
push str.root_key
push edi
lea ecx, [ebp - 0xe18]
mov edx, dword [ebp - 0x2248]
call fcn.00498040
test eax, eax
je 0x484bd5
push 0x800
push ebx
lea ecx, [ebp - 0xe18]
push ecx
call fcn.004fd670
push str.INST
push 0x400
lea edx, [ebp - 0xe18]
push edx
call fcn.004fa94e
add esp, 0x18
push str.INST
lea eax, [ebp - 0xe18]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x484bfb
mov ecx, dword [ebp - 0x2264]
mov esi, dword [ecx + 0xe230]
jmp 0x484c1d
push str.HKCU
lea edx, [ebp - 0xe18]
push edx
call fcn.004f9f1e
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.004fd670
add esp, 0xc
push 0x400
push str.key_path
push edi
lea ecx, [ebp - 0xe18]
mov edx, dword [ebp - 0x2248]
call fcn.00498040
test eax, eax
je 0x484c6a
mov byte [ebp - 0x224f], 1
push 0x581600
lea ecx, [ebp - 0x224f]
push ecx
call fcn.004fd5a3
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 0x484ca0
mov byte [ebp - 0x224a], bl
push 0x581600
lea ecx, [ebp - 0x224a]
push ecx
call fcn.004fd5a3
push 0x200
push ebx
lea edx, [ebp - 0x418]
push edx
call fcn.004fd670
add esp, 0xc
push pe_nt_image_headers32
push str.value_name
push edi
lea ecx, [ebp - 0x418]
mov edx, dword [ebp - 0x2248]
call fcn.00498040
test eax, eax
je 0x484ced
mov byte [ebp - 0x224c], 1
push 0x581600
lea eax, [ebp - 0x224c]
push eax
call fcn.004fd5a3
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 0x484d28
mov byte [ebp - 0x224e], bl
push 0x581600
lea ecx, [ebp - 0x224e]
push ecx
call fcn.004fd5a3
push 0x200
push ebx
lea edx, [ebp - 0x218]
push edx
call fcn.004fd670
add esp, 0xc
push pe_nt_image_headers32
push str.value
push edi
lea ecx, [ebp - 0x218]
mov edx, dword [ebp - 0x2248]
call fcn.00498040
test eax, eax
je 0x484d75
mov byte [ebp - 0x2250], 1
push 0x581600
lea eax, [ebp - 0x2250]
push eax
call fcn.004fd5a3
push 0x200
push ebx
lea ecx, [ebp - 0x618]
push ecx
call fcn.004fd670
add esp, 0xc
push pe_nt_image_headers32
push str.value_type
push edi
lea ecx, [ebp - 0x618]
mov edx, dword [ebp - 0x2248]
call fcn.00498040
test eax, eax
je 0x484dd5
push 0x200
push ebx
lea edx, [ebp - 0x618]
push edx
call fcn.004fd670
push str.REG_SZ
push pe_nt_image_headers32
lea eax, [ebp - 0x618]
push eax
call fcn.004fa94e
add esp, 0x18
push str.REG_DWORD
lea ecx, [ebp - 0x618]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x484e51
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 0x484e2d
mov byte [ebp - 0x2241], bl
mov dword [ebp - 4], 1
jmp 0x484ed7
lea edx, [ebp - 0x218]
call fcn.00493fa0
cmp eax, dword [ebp - 0x2270]
sete byte [ebp - 0x2241]
mov dword [ebp - 4], 1
jmp 0x484ed7
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 0x484e8e
mov byte [ebp - 0x2241], bl
mov dword [ebp - 4], 1
jmp 0x484ed7
lea ecx, [ebp - 0xe18]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
sete byte [ebp - 0x2241]
mov dword [ebp - 4], 1
jmp 0x484ed7
mov eax, dword [ebp - 0x2258]
cmp eax, ebx
je 0x484ee8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2248]
cmp eax, ebx
je 0x484f00
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 0x2248], ebx
cmp byte [ebp - 0x2241], bl
jne 0x484f1f
mov byte [ebp - 0x2252], bl
push 0x581600
lea eax, [ebp - 0x2252]
push eax
call fcn.004fd5a3
lea ecx, [ebp - 0x2248]
push ecx
push edi
mov edx, str.VALIDATE_CHECK_FILE
mov ecx, dword [ebp - 0x225c]
call fcn.004976b0
test eax, eax
je 0x484f53
mov byte [ebp - 0x2254], 1
push 0x581600
lea edx, [ebp - 0x2254]
push edx
call fcn.004fd5a3
push 0x800
push ebx
lea eax, [ebp - 0xe18]
push eax
call fcn.004fd670
add esp, 0xc
push 0x400
push str.target
push edi
lea ecx, [ebp - 0xe18]
mov edx, dword [ebp - 0x2248]
call fcn.00498040
test eax, eax
je 0x484fa0
mov byte [ebp - 0x2249], 1
push 0x581600
lea ecx, [ebp - 0x2249]
push ecx
call fcn.004fd5a3
lea eax, [ebp - 0xe18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x484fb0
sub eax, edx
sar eax, 1
jne 0x484fd9
mov byte [ebp - 0x2253], 1
push 0x581600
lea edx, [ebp - 0x2253]
push edx
call fcn.004fd5a3
push 0x200
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004fd670
add esp, 0xc
push ebx
push pe_nt_image_headers32
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0xe18]
push edx
mov ecx, dword [ebp - 0x2264]
call fcn.00480760
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 0x4850e8
mov byte [ebp - 0x2251], 1
push 0x581600
lea edx, [ebp - 0x2251]
push edx
call fcn.004fd5a3
mov ecx, dword [ebp - 0x2288]
xor ebx, ebx
cmp ecx, ebx
jne 0x485082
mov byte [ebp - 0x2241], 1
jmp 0x4850a5
mov byte [ebp - 0x2241], bl
mov eax, dword [ebp - 0x227c]
cmp eax, ebx
je 0x4850a5
push eax
push str.__s__is_not_valid
mov edx, 0x649e50
call fcn.004917b0
add esp, 8
mov dword [ebp - 4], ebx
mov eax, 0x4850e6
ret
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x225c]
cmp eax, ebx
je 0x485106
cmp eax, dword [ebp - 0x2278]
je 0x485106
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 0x2248]
cmp eax, ebx
je 0x485118
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.00495f20
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.004fa103
mov esp, ebp
pop ebp
ret 8