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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4ea7
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5374e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ecx + 0x5c]
push eax
lea eax, [ecx + 0x58]
mov dword [ebp - 0x22c], edi
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0046be60
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0049a810
add esp, 0x18
call fcn.0040db10
mov ecx, eax
test ecx, ecx
je 0x4282c8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov eax, 0x507d08
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x4280e5
movzx eax, ax
push eax
call fcn.00414690
jmp 0x4280f1
push 0x34
push 0x507d08
call fcn.0040dd50
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.0041db20
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x228], 1
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x224], 0x208
push eax
push str.Path
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x218], 0
je 0x428227
push str.Utilsmininews.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428227
call fcn.0040db10
mov ecx, eax
test ecx, ecx
je 0x4282d2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x4281b6
movzx eax, ax
mov ecx, edi
push eax
call fcn.00414690
jmp 0x4281de
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4281c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040dd50
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4281fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4282a9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4282a9
call fcn.0040db10
mov ecx, eax
test ecx, ecx
je 0x4282dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x502788
mov byte [ebp - 4], 4
mov ecx, edi
test eax, 0xffff0000
jne 0x42825d
movzx eax, ax
push eax
call fcn.00414690
jmp 0x428269
push 0
push 0x502788
call fcn.0040dd50
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428287
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4282a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046a581
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004034a0
push 0x80004005
call fcn.004034a0
push 0x80004005
call fcn.004034a0
int3