Function at 0x10035aa0
Capabilities:
Check if file exists
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a072
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100bc1b4]
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 eax, dword [ebp + 8]
push 0x210
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x220]
push 0
push eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 1
call fcn.100592a0
mov eax, dword [0x100be2c8]
add esp, 0xc
test al, 1
jne 0x10035b2a
or eax, 1
mov dword [0x100be2c8], eax
mov dword [ebp - 4], 0
mov dword [0x100be2c4], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x22c]
mov byte [ebp - 0x231], 0
push eax
call fcn.10039eb9
mov dword [ebp - 4], 1
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x231]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x240]
push eax
push 0x10034c70
push 0x100be2c4
call fcn.1003ab81
add esp, 0x10
test eax, eax
je 0x10036516
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x22c]
push eax
call fcn.10039ef3
add esp, 4
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x224]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20219
push 0
push 0x100be2cc
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x224], 0
call esi
test eax, eax
jne 0x10035c04
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], 0x200
jmp 0x10035c4c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0x20119
push 0
push 0x100be2cc
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x100364e3
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], 0x100
lea eax, [ebp - 0x224]
mov dword [ebp - 0x250], ebx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0x210
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.InstallDir
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10035ca5
mov eax, dword [ebp - 0x228]
cmp eax, 1
je 0x10035c93
cmp eax, 2
jne 0x10035ca5
cmp dword [ebp - 0x224], 0
jne 0x10035ca5
xor eax, eax
mov word [ebp - 0x220], ax
push str.sysdeepopt.ini
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10035ced
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100364ea
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x100364ea
call fcn.1000b580
mov ecx, eax
test ecx, ecx
je 0x1003652e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 5
call fcn.1000b580
mov ecx, eax
test ecx, ecx
je 0x10036538
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x224]
push 0x10090d20
call fcn.1001e690
test al, al
jne 0x10035d55
push 1
push 0x10090d20
lea ecx, [ebp - 0x224]
call fcn.10012540
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x230], eax
test ecx, ecx
je 0x10035d7a
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10035d90
call fcn.1000b580
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10036542
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x258], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.10036d90
mov eax, dword [ebp - 0x23c]
add edi, 0xfffffff0
add esp, 0x14
or ebx, 0xffffffff
lea esi, [eax - 0x10]
cmp esi, edi
je 0x10035e2f
cmp dword [edi + 0xc], 0
jl 0x10035e20
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x10035e20
push esi
call fcn.1000b0c0
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10035e15
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
add eax, 0x10
mov dword [ebp - 0x238], eax
jmp 0x10035e2f
push dword [eax - 0xc]
lea ecx, [ebp - 0x238]
push eax
call fcn.10012540
mov eax, 1
mov dword [ebp - 0x258], eax
and eax, 0xfffffffe
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 7
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10035e5b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x230]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10035e79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
push 0
push str.count
push 0x10094218
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x228], edi
cmp eax, edi
jl 0x10035ffe
nop dword [eax + eax]
call fcn.1000b580
test eax, eax
je 0x1003652e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 0xd
call fcn.1000b580
test eax, eax
je 0x1003652e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x224]
push edi
push str.job_d
push eax
call fcn.1000b450
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x10035f31
push 0x105
lea ecx, [ebp - 0x23c]
call fcn.10011f00
mov esi, dword [ebp - 0x23c]
cmp dword [esi - 8], 0x105
jl 0x1003654c
mov edi, dword [ebp - 0x224]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
push 0x1008e708
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10060b98
add esp, 8
test eax, eax
js 0x1003654c
cmp eax, dword [esi - 8]
jg 0x1003654c
push esi
push dword [ebp - 0x238]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.10060d4f
add esp, 8
test eax, eax
je 0x1003634c
mov byte [ebp - 4], 0xd
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10035fca
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10035fe5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x228]
inc edi
mov dword [ebp - 0x228], edi
cmp edi, dword [ebp - 0x230]
jle 0x10035eb0
lea eax, [ebp - 0x220]
push eax
push 0
push str.count
push str.hkcurun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x224], edi
cmp eax, edi
jl 0x10036180
call fcn.1000b580
test eax, eax
je 0x1003652e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 0x16
call fcn.1000b580
test eax, eax
je 0x1003652e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x23c]
push edi
push str.hkcurun_d
push eax
call fcn.1000b450
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x100360b1
push 0x105
lea ecx, [ebp - 0x228]
call fcn.10011f00
mov esi, dword [ebp - 0x228]
cmp dword [esi - 8], 0x105
jl 0x1003654c
mov edi, dword [ebp - 0x23c]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
push 0x1008e708
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10060b98
add esp, 8
test eax, eax
js 0x1003654c
cmp eax, dword [esi - 8]
jg 0x1003654c
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x25c]
push esi
push dword [eax]
call fcn.10060d4f
add esp, 8
test eax, eax
je 0x100363d6
mov byte [ebp - 4], 0x16
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003614c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10036167
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
inc edi
mov dword [ebp - 0x224], edi
cmp edi, dword [ebp - 0x230]
jle 0x10036030
lea eax, [ebp - 0x220]
push eax
push 0
push str.count
push str.hklmrun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x224], edi
cmp eax, edi
jl 0x10036302
call fcn.1000b580
test eax, eax
je 0x1003652e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 0x1f
call fcn.1000b580
test eax, eax
je 0x1003652e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x23c]
push edi
push str.hklmrun_d
push eax
call fcn.1000b450
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x10036233
push 0x105
lea ecx, [ebp - 0x228]
call fcn.10011f00
mov esi, dword [ebp - 0x228]
cmp dword [esi - 8], 0x105
jl 0x1003654c
mov edi, dword [ebp - 0x23c]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
push 0x1008e708
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10060b98
add esp, 8
test eax, eax
js 0x1003654c
cmp eax, dword [esi - 8]
jg 0x1003654c
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x25c]
push esi
push dword [eax]
call fcn.10060d4f
add esp, 8
test eax, eax
je 0x10036460
mov byte [ebp - 4], 0x1f
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100362ce
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100362e9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x224]
inc edi
mov dword [ebp - 0x224], edi
cmp edi, dword [ebp - 0x230]
jle 0x100361b2
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10036321
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x100364ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x100364ea
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 0xd
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10036371
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003638c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100363ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x100364ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x100364ea
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 0x16
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100363fb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10036416
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10036435
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x100364ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x100364ea
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 0x1f
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10036485
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100364a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100364bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x100364ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x100364ea
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x248], 0
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.100536aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x22c]
push eax
call fcn.10039f14
add esp, 4
test al, al
jne 0x10036556
call fcn.1003ab99
push 0x80004005
call fcn.1000b090
push 0x80004005
call fcn.1000b090
push 0x80004005
call fcn.1000b090
push 0x80070057
call fcn.1000b090
sub esp, 8
lea eax, [ebp - 0x22c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.10008970
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.10015930
int3