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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e336
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100a6204]
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 - 0x258], eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10051fb0
mov esi, dword [str.8FA908C0_EAC5_47F9_8074_FFC5EBBEB255]
add esp, 0xc
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100276af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x23c]
push esi
call fcn.100074e0
test al, al
jne 0x1002716c
test esi, esi
jne 0x10027144
xor ecx, ecx
jmp 0x1002715f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027150
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x23c]
call fcn.1000f980
mov dword [ebp - 4], 1
mov esi, dword [str.TK8Fj70YG_v5TNxF0s46exCoTJuexFrC]
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100276b9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
push esi
call fcn.100074e0
test al, al
jne 0x100271d3
test esi, esi
jne 0x100271b2
xor ecx, ecx
jmp 0x100271c6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100271b7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x240]
call fcn.1000f980
mov byte [ebp - 4], 3
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1002ee20
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
lea esi, [ecx + 2]
mov word [ebp - 0x238], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027230
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.10011780
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x248]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10027270
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10027291
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, ebx
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100272b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmovae eax, dword [ebp - 0x238]
push ecx
push 0x20219
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x23c], 0
call esi
test eax, eax
jne 0x10027330
mov ebx, dword [ebp - 0x23c]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], 0x200
jmp 0x10027388
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x23c]
push ecx
push 0x20119
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x10027671
mov ebx, dword [ebp - 0x23c]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], 0x100
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x248], ebx
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x23c], 0x210
push eax
lea eax, [ebp - 0x244]
push eax
push 0
push str.InstallDir
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100273e1
mov eax, dword [ebp - 0x244]
cmp eax, 1
je 0x100273cf
cmp eax, 2
jne 0x100273e1
cmp dword [ebp - 0x23c], 0
jne 0x100273e1
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 0x10027426
mov byte [ebp - 4], 0xa
test ebx, ebx
je 0x10027675
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x254], 0
jmp 0x10027675
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 - 0x244], eax
cmp eax, ebx
jl 0x100275e2
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100276af
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 0xe
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100276af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x240]
push ebx
push str.service_d
push eax
call fcn.10007b40
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
add esp, 0xc
or eax, ecx
jge 0x100274d3
push 0x105
lea ecx, [ebp - 0x23c]
call fcn.1000f2b0
mov esi, dword [ebp - 0x23c]
cmp dword [esi - 8], 0x105
jl 0x100276c8
mov edi, dword [ebp - 0x240]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
lea eax, [ebp - 0x220]
push eax
push 0x104
push esi
push 0x100826f8
push str.name
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.1005908f
add esp, 8
test eax, eax
js 0x100276c8
cmp eax, dword [esi - 8]
jg 0x100276c8
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x258]
push esi
push dword [eax]
call fcn.10059246
add esp, 8
test eax, eax
je 0x1002759b
mov byte [ebp - 4], 0xe
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1002756b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10027587
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x244]
jle 0x10027452
mov edi, 1
jmp 0x100275e2
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 0xe
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100275c3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100275dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x244]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10027601
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x10027652
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10027648
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100276c3
push edx
push ecx
call fcn.10048fc3
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
jmp 0x10027691
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.100053f0
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.10049342
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
call fcn.100550e9
push 0x80070057
call fcn.100074c0
int3