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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8267
mov eax, dword fs:[0]
push eax
sub esp, 0x240
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]
mov edi, 1
push 0x210
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.1006e460
mov eax, dword [0x100d39dc]
add esp, 0xc
test al, 1
jne 0x1003ebba
or eax, edi
mov dword [0x100d39dc], eax
mov dword [ebp - 4], 0
mov dword [0x100d39d8], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x244]
mov byte [ebp - 0x225], 0
push eax
call fcn.10042189
mov dword [ebp - 4], 1
lea eax, [ebp - 0x244]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x225]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push 0x1003ce80
push 0x100d39d8
call fcn.10042e51
add esp, 0x10
test eax, eax
je 0x1003ef93
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x244]
push eax
call fcn.100421c3
add esp, 4
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 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 0x100d39e0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x224], 0
call esi
test eax, eax
jne 0x1003ec94
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 0x200
jmp 0x1003ecdc
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0x20119
push 0
push 0x100d39e0
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x1003ef64
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 0x100
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], ebx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push str.InstallDir
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003ed35
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x1003ed23
cmp eax, 2
jne 0x1003ed35
cmp dword [ebp - 0x224], 0
jne 0x1003ed35
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 0x1003ed7d
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1003ef6b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], 0
jmp 0x1003ef6b
lea eax, [ebp - 0x220]
push eax
push 0
push str.count
push str.service
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, 1
mov dword [ebp - 0x22c], eax
cmp eax, ebx
jl 0x1003ef40
nop dword [eax]
call fcn.1000db70
test eax, eax
je 0x1003efb5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 5
call fcn.1000db70
test eax, eax
je 0x1003efb5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x248]
push ebx
push str.service_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 0x1003ee31
push 0x105
lea ecx, [ebp - 0x224]
call fcn.100144a0
mov esi, dword [ebp - 0x224]
cmp dword [esi - 8], 0x105
jl 0x1003efab
mov edi, dword [ebp - 0x248]
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 0x1003efab
cmp eax, dword [esi - 8]
jg 0x1003efab
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x24c]
push esi
push dword [eax]
call fcn.10075f0f
add esp, 8
test eax, eax
je 0x1003eef9
mov byte [ebp - 4], 5
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003eec9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003eee5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x22c]
jle 0x1003edb0
mov edi, 1
jmp 0x1003ef40
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 5
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003ef21
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003ef3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x1003ef6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], 0
jmp 0x1003ef6b
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x238], 0
mov eax, edi
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 - 0x244]
push eax
call fcn.100421e4
add esp, 4
test al, al
jne 0x1003efbf
call fcn.10042e69
push 0x80070057
call fcn.1000d6a0
push 0x80004005
call fcn.1000d6a0
sub esp, 8
lea eax, [ebp - 0x244]
mov ecx, esp
mov dword [ebp - 0x24c], esp
push eax
call fcn.1000afd0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.10017ed0
int3