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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a167
mov eax, dword fs:[0]
push eax
sub esp, 0x240
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]
mov edi, 1
push 0x210
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100592a0
mov eax, dword [0x100be304]
add esp, 0xc
test al, 1
jne 0x100368fa
or eax, edi
mov dword [0x100be304], eax
mov dword [ebp - 4], 0
mov dword [0x100be300], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x244]
mov byte [ebp - 0x225], 0
push eax
call fcn.10039eb9
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 0x10034bc0
push 0x100be300
call fcn.1003ab81
add esp, 0x10
test eax, eax
je 0x10036cd3
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x244]
push eax
call fcn.10039ef3
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 0x100be308
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x224], 0
call esi
test eax, eax
jne 0x100369d4
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 0x200
jmp 0x10036a1c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0x20119
push 0
push 0x100be308
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x10036ca4
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 0x10036a75
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x10036a63
cmp eax, 2
jne 0x10036a75
cmp dword [ebp - 0x224], 0
jne 0x10036a75
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 0x10036abd
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10036cab
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], 0
jmp 0x10036cab
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 0x10036c80
nop dword [eax]
call fcn.1000b580
test eax, eax
je 0x10036cf5
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.1000b580
test eax, eax
je 0x10036cf5
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.1000b450
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x10036b71
push 0x105
lea ecx, [ebp - 0x224]
call fcn.10011f00
mov esi, dword [ebp - 0x224]
cmp dword [esi - 8], 0x105
jl 0x10036ceb
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 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 0x10036ceb
cmp eax, dword [esi - 8]
jg 0x10036ceb
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.10060d4f
add esp, 8
test eax, eax
je 0x10036c39
mov byte [ebp - 4], 5
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10036c09
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 0x10036c25
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x22c]
jle 0x10036af0
mov edi, 1
jmp 0x10036c80
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 0x10036c61
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 0x10036c7a
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 0x10036cab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], 0
jmp 0x10036cab
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.100536aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x244]
push eax
call fcn.10039f14
add esp, 4
test al, al
jne 0x10036cff
call fcn.1003ab99
push 0x80070057
call fcn.1000b090
push 0x80004005
call fcn.1000b090
sub esp, 8
lea eax, [ebp - 0x244]
mov ecx, esp
mov dword [ebp - 0x24c], esp
push eax
call fcn.10008970
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.10015930
int3