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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eea19
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x53451c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x5379f4]
test ecx, ecx
jne 0x4288b7
push 0x5331c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5379f4], 0
jne 0x4288a6
push 0x60
call fcn.00433270
add esp, 4
mov dword [ebp - 0x434], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x428891
mov ecx, eax
call fcn.0041b900
mov ecx, eax
jmp 0x428893
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x434], eax
mov dword [0x5379f4], ecx
push 0x5331c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5379f4]
call fcn.0041bf40
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00408120
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x430], esi
mov edi, dword [esi - 0xc]
mov dword [ebp - 4], 1
test edi, edi
js 0x428bc3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x428908
push edi
lea ecx, [ebp - 0x430]
call fcn.00407760
mov esi, dword [ebp - 0x430]
lea eax, [edi + 1]
push eax
push esi
call fcn.004a5dbf
add esp, 8
cmp edi, dword [esi - 8]
jg 0x428bc3
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jl 0x428b89
push 0x4fbaf8
push esi
call fcn.00478ef0
add esp, 8
test eax, eax
je 0x428b89
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x428b89
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00478a90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0046f040
call fcn.004069f0
mov ecx, eax
test ecx, ecx
je 0x428bcd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push str.bizhi123456789
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
call fcn.00407ff0
test al, al
jne 0x4289c1
push 0xe
push str.bizhi123456789
lea ecx, [ebp - 0x42c]
call fcn.00407a00
mov byte [ebp - 4], 3
call fcn.004069f0
mov ecx, eax
test ecx, ecx
je 0x428bd7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x428]
call fcn.00407ff0
test al, al
jne 0x428a27
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428a05
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00407a00
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00459410
mov edx, dword [ebp - 0x428]
or edi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428a6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428a8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x424]
cmp dword [eax - 0xc], 0
jne 0x428ac7
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428ab0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x428b9e
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00478a90
add esp, 0xc
mov dword [ebp - 0x43c], 1
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x43c]
push eax
push 0x4fc414
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsdidawp.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x428b2d
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
jmp 0x428a9c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428b4c
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
jmp 0x428a9c
push str.config.set
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
push str.sysvalue
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
jmp 0x428a9c
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x428ba8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0046ba88
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004062a0
push 0x80004005
call fcn.004062a0
push 0x80004005
call fcn.004062a0
int3