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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2202
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x10124b64]
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 edi, dword [ebp + 8]
mov ebx, 0x10129d90
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x83c], 0
mov eax, dword [ebx + 0xc]
test dword [ecx], eax
jne 0x10030ea4
xor eax, eax
mov dword [ebp - 0x830], eax
call fcn.1000a020
mov ecx, eax
test ecx, ecx
je 0x10030f3f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x82c], 0x104
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x10030b00
push 0x104
lea ecx, [ebp - 0x814]
call fcn.1000a5e0
mov esi, dword [ebp - 0x814]
cmp dword [esi - 8], 0x104
jl 0x10030f35
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x82c]
push eax
push esi
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.100bd581
add esp, 8
test eax, eax
js 0x10030f35
cmp eax, dword [esi - 8]
jg 0x10030f35
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
jne 0x10030e73
cmp ebx, 0xea
je 0x10030e73
lea eax, [ebp - 0x824]
mov dword [ebp - 0x824], 0
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10030e6b
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.100b5e10
mov ebx, dword [ebp - 0x81c]
lea eax, [ebp - 0x840]
add esp, 0xc
mov dword [ebp - 0x844], 1
mov dword [ebp - 0x840], 0x200000
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x844]
push eax
push 0
push dword [ebx + 4]
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp dword [ebx + 8], 0
je 0x10030c0d
push dword [ebx]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
call fcn.1000a020
test eax, eax
je 0x10030f3f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x828], eax
push edi
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 1
call fcn.100306d0
test al, al
jne 0x10030c82
test edi, edi
jne 0x10030c61
xor ecx, ecx
jmp 0x10030c75
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030c66
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x828]
call fcn.1000ab90
mov edi, dword [str.70e489bf_a8ba_460f_9c42_567695d37140]
mov byte [ebp - 4], 2
call fcn.1000a020
mov ecx, eax
test ecx, ecx
je 0x10030f3f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
push edi
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 3
call fcn.100306d0
test al, al
jne 0x10030cec
test edi, edi
jne 0x10030cc5
xor eax, eax
jmp 0x10030cdf
mov eax, edi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10030cd0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x820]
call fcn.1000ab90
lea eax, [ebp - 0x820]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x834]
push ebx
push eax
call fcn.1008d360
add esp, 0xc
mov edx, dword [ebp - 0x820]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10030d29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x828]
test eax, eax
je 0x10030d5f
test edi, edi
je 0x10030f3f
push edi
push dword [ebp - 0x834]
call fcn.100bd77e
add esp, 8
test eax, eax
je 0x10030ee3
inc dword [ebp - 0x830]
lea edx, [esi - 0x10]
mov dword [ebp - 0x82c], 0x104
cmp dword [edx + 4], 0
mov ebx, dword [edx]
je 0x10030dbf
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10030d9b
cmp dword [esi - 8], 0
jl 0x10030f35
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x10030dbf
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10030daf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10030de9
push 0x104
lea ecx, [ebp - 0x814]
call fcn.1000a5e0
mov esi, dword [ebp - 0x814]
cmp dword [esi - 8], 0x104
jl 0x10030f35
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [ebp - 0x830]
push esi
push eax
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edx, dword [ebp - 0x834]
mov ebx, eax
mov byte [ebp - 4], 2
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10030e49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10030e65
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x818]
test ebx, ebx
je 0x10030b62
mov ebx, dword [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10030e98
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x838]
mov edi, dword [ebp - 0x818]
mov eax, dword [ebp - 0x83c]
add ebx, 0x10
add eax, 0x10
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x83c], eax
cmp eax, 0xb0
jb 0x10030a95
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.1009b46e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x838]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x834]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
or dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10030f10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10030e79
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10030e79
push 0x80070057
call fcn.10009e10
push 0x80004005
call fcn.10009e10
int3