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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4fa7
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 + 0x54]
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 0x4289b8
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 0x4287d5
movzx eax, ax
push eax
call fcn.00414690
jmp 0x4287e1
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 0x428917
push str.BinUtilsmininews.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 0x428917
call fcn.0040db10
mov ecx, eax
test ecx, ecx
je 0x4289c2
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 0x4288a6
movzx eax, ax
mov ecx, edi
push eax
call fcn.00414690
jmp 0x4288ce
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4288b0
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 0x4288ec
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 0x428999
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x428999
call fcn.0040db10
mov ecx, eax
test ecx, ecx
je 0x4289cc
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 0x42894d
movzx eax, ax
push eax
call fcn.00414690
jmp 0x428959
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 0x428977
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 0x428999
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