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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8172
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100d10d4]
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.1006e460
mov eax, dword [0x100d39a0]
add esp, 0xc
test al, 1
jne 0x1003ddea
or eax, 1
mov dword [0x100d39a0], eax
mov dword [ebp - 4], 0
mov dword [0x100d399c], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x22c]
mov byte [ebp - 0x231], 0
push eax
call fcn.10042189
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 0x1003cf30
push 0x100d399c
call fcn.10042e51
add esp, 0x10
test eax, eax
je 0x1003e7d6
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x22c]
push eax
call fcn.100421c3
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 0x100d39a4
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x224], 0
call esi
test eax, eax
jne 0x1003dec4
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], 0x200
jmp 0x1003df0c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0x20119
push 0
push 0x100d39a4
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x1003e7a3
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 0x1003df65
mov eax, dword [ebp - 0x228]
cmp eax, 1
je 0x1003df53
cmp eax, 2
jne 0x1003df65
cmp dword [ebp - 0x224], 0
jne 0x1003df65
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 0x1003dfad
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1003e7aa
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x1003e7aa
call fcn.1000db70
mov ecx, eax
test ecx, ecx
je 0x1003e7ee
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 5
call fcn.1000db70
mov ecx, eax
test ecx, ecx
je 0x1003e7f8
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 0x100aed00
call fcn.10025710
test al, al
jne 0x1003e015
push 1
push 0x100aed00
lea ecx, [ebp - 0x224]
call fcn.10014ae0
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 0x1003e03a
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1003e050
call fcn.1000db70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1003e802
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.1003f050
mov eax, dword [ebp - 0x23c]
add edi, 0xfffffff0
add esp, 0x14
or ebx, 0xffffffff
lea esi, [eax - 0x10]
cmp esi, edi
je 0x1003e0ef
cmp dword [edi + 0xc], 0
jl 0x1003e0e0
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x1003e0e0
push esi
call fcn.1000d6d0
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 0x1003e0d5
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 0x1003e0ef
push dword [eax - 0xc]
lea ecx, [ebp - 0x238]
push eax
call fcn.10014ae0
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 0x1003e11b
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 0x1003e139
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 0x100b0928
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, 1
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x228], edi
cmp eax, edi
jl 0x1003e2be
nop dword [eax + eax]
call fcn.1000db70
test eax, eax
je 0x1003e7ee
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.1000db70
test eax, eax
je 0x1003e7ee
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.1000da40
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x1003e1f1
push 0x105
lea ecx, [ebp - 0x23c]
call fcn.100144a0
mov esi, dword [ebp - 0x23c]
cmp dword [esi - 8], 0x105
jl 0x1003e80c
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 0x100ac6f8
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10075d58
add esp, 8
test eax, eax
js 0x1003e80c
cmp eax, dword [esi - 8]
jg 0x1003e80c
push esi
push dword [ebp - 0x238]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.10075f0f
add esp, 8
test eax, eax
je 0x1003e60c
mov byte [ebp - 4], 0xd
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003e28a
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 0x1003e2a5
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 0x1003e170
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 0x1003e440
call fcn.1000db70
test eax, eax
je 0x1003e7ee
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.1000db70
test eax, eax
je 0x1003e7ee
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.1000da40
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x1003e371
push 0x105
lea ecx, [ebp - 0x228]
call fcn.100144a0
mov esi, dword [ebp - 0x228]
cmp dword [esi - 8], 0x105
jl 0x1003e80c
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 0x100ac6f8
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10075d58
add esp, 8
test eax, eax
js 0x1003e80c
cmp eax, dword [esi - 8]
jg 0x1003e80c
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.10075f0f
add esp, 8
test eax, eax
je 0x1003e696
mov byte [ebp - 4], 0x16
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003e40c
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 0x1003e427
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 0x1003e2f0
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 0x1003e5c2
call fcn.1000db70
test eax, eax
je 0x1003e7ee
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.1000db70
test eax, eax
je 0x1003e7ee
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.1000da40
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x1003e4f3
push 0x105
lea ecx, [ebp - 0x228]
call fcn.100144a0
mov esi, dword [ebp - 0x228]
cmp dword [esi - 8], 0x105
jl 0x1003e80c
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 0x100ac6f8
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.10075d58
add esp, 8
test eax, eax
js 0x1003e80c
cmp eax, dword [esi - 8]
jg 0x1003e80c
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.10075f0f
add esp, 8
test eax, eax
je 0x1003e720
mov byte [ebp - 4], 0x1f
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003e58e
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 0x1003e5a9
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 0x1003e472
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 0x1003e5e1
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 0x1003e7aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x1003e7aa
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 0x1003e631
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 0x1003e64c
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 0x1003e66b
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 0x1003e7aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x1003e7aa
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 0x1003e6bb
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 0x1003e6d6
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 0x1003e6f5
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 0x1003e7aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x1003e7aa
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 0x1003e745
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 0x1003e760
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 0x1003e77f
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 0x1003e7aa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
jmp 0x1003e7aa
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.10061eb3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x22c]
push eax
call fcn.100421e4
add esp, 4
test al, al
jne 0x1003e816
call fcn.10042e69
push 0x80004005
call fcn.1000d6a0
push 0x80004005
call fcn.1000d6a0
push 0x80004005
call fcn.1000d6a0
push 0x80070057
call fcn.1000d6a0
sub esp, 8
lea eax, [ebp - 0x22c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.1000afd0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.10017ed0
int3