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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f1909
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10136674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x10139b24]
test ecx, ecx
jne 0x1002a8e5
push 0x101352e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10139b24], 0
jne 0x1002a8cc
push 0x1c
call fcn.10035660
mov esi, eax
add esp, 4
mov dword [ebp - 0x430], esi
test esi, esi
je 0x1002a8c4
lea ecx, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1002a8c6
xor esi, esi
mov dword [0x10139b24], esi
push 0x101352e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x10139b24]
test ecx, ecx
jne 0x1002a8e5
xor eax, eax
jmp 0x1002a947
mov eax, dword [0x10139b20]
test eax, eax
jne 0x1002a947
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x10139b20], 0
jne 0x1002a937
push 0x68
call fcn.10035660
add esp, 4
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1002a922
mov ecx, eax
call fcn.1001c4a0
mov ecx, eax
jmp 0x1002a924
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x430], eax
mov dword [0x10139b20], ecx
mov eax, dword [0x10139b24]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x10139b20]
mov ecx, eax
call fcn.1001cb90
mov ebx, dword [eax]
mov ecx, dword [ebx - 0x10]
lea esi, [ebx - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x1002a96f
cmp ecx, dword [esi]
jne 0x1002a96f
lock inc dword [eax]
jmp 0x1002a99d
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x1002aca2
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi]
inc eax
add eax, eax
push eax
push ebx
push eax
lea eax, [esi + 0x10]
push eax
call fcn.1002b040
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x434], esi
mov edi, dword [esi - 0xc]
mov dword [ebp - 4], 1
test edi, edi
js 0x1002aca7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1002a9db
push edi
lea ecx, [ebp - 0x434]
call fcn.100073f0
mov esi, dword [ebp - 0x434]
lea eax, [edi + 1]
push eax
push esi
call fcn.100a8e0f
add esp, 8
cmp edi, dword [esi - 8]
jg 0x1002aca7
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jl 0x1002ac67
push 0x100fdabc
push esi
call fcn.1007bf40
add esp, 8
test eax, eax
je 0x1002ac67
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x1002ac67
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1007bae0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1006d180
call fcn.10006650
mov ecx, eax
test ecx, ecx
je 0x1002acb1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov eax, str.bizhi123456789
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x42c]
test eax, 0xffff0000
jne 0x1002aa8b
movzx eax, ax
push eax
call fcn.10006850
jmp 0x1002aa97
push 0xe
push str.bizhi123456789
call fcn.10007690
mov byte [ebp - 4], 3
call fcn.10006650
mov ecx, eax
test ecx, ecx
je 0x1002acbb
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
test eax, 0xffff0000
jne 0x1002aada
movzx eax, ax
lea ecx, [ebp - 0x428]
push eax
call fcn.10006850
jmp 0x1002ab05
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002aae3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.10007690
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.100578f0
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 0x1002ab4a
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 0x1002ab6b
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 0x1002aba5
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002ab8e
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 0x1002ac7c
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1007bae0
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 0x100fe3bc
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathshalowp.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1002ac0b
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
jmp 0x1002ab7a
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002ac2a
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
jmp 0x1002ab7a
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 0x1002ab7a
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002ac86
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret
call fcn.100079b0
push 0x80070057
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
push 0x80004005
call fcn.10005ea0
int3