Function at 0x100011c0
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value
Read .ini file
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1008a8d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x858
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea eax, [esp + 0x354]
push ebp
push esi
push edi
test eax, eax
mov ebp, ecx
mov dword [esp + 0x760], 1
mov byte [esp + 0x360], 0
je 0x10001459
lea ecx, [esp + 0x360]
push 0x400
push ecx
push str.SKYSEA_INSTDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10001459
lea edx, [esp + 0x58]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000126c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x100a2820
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10001280
lea ecx, [esp + 0x58]
push 0x5c
push ecx
call ebx
add esp, 8
test eax, eax
je 0x10001280
mov byte [eax + 1], 0
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathA]
test eax, eax
jne 0x10001354
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x764]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x764]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SCVSys.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x764]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10001354
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x400
jg 0x10001459
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x360]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x360]
push ecx
push str.SKYSEA_INSTDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10001459
mov dl, byte [0x100aba18]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], dl
lea edx, [esp + 0x15c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, str.SOFTWARESky_ProductSKYSEAClientView
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x15c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x14], eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100a27e8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x15c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ScvInst
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x164]
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000144a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x360]
push edx
push eax
push 0
push 0
push str.SCVDIR
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10001459
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x360]
push 0x5c
push edx
call ebx
mov edx, eax
lea edi, [esp + 0x368]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x35f]
cmp edx, eax
jne 0x10001489
mov byte [edx], 0
lea ecx, [esp + 0x360]
push 0x5c
push ecx
call ebx
mov edx, eax
lea edi, [esp + 0x368]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x35f]
cmp edx, eax
jne 0x100014b9
mov byte [edx], 0
mov edi, str.AppSetNative.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x360]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0x2c], eax
and ecx, 3
mov dword [esp + 0x30], eax
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea edi, [esp + 0x261]
mov dword [esp + 0x35], ecx
mov byte [esp + 0x34], al
mov dword [esp + 0x39], ecx
mov ebx, dword [esp + 0x878]
mov dword [esp + 0x3d], ecx
mov dword [esp + 0x41], ecx
mov word [esp + 0x45], cx
mov byte [esp + 0x47], cl
mov byte [esp + 0x260], cl
mov ecx, 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
test ebx, ebx
jne 0x1000153f
mov ebx, 0xcc4c
mov eax, dword [ebp + 4]
test eax, eax
jne 0x10001817
push 0
mov ecx, ebp
call fcn.10001840
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
test eax, eax
mov dword [ebp + 0x18], eax
je 0x10001688
push 0
push 1
push 1
push 0
call esi
test eax, eax
mov dword [ebp + 0x24], eax
je 0x100016db
lea edx, [esp + 0x360]
lea eax, [esp + 0x260]
push edx
push 0xff
push eax
push 0x100aba18
push str.AgentType
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
mov dword [ebp + 0x28], eax
push edx
push str.F:SCVICEIceServiceIceServer.cpp
mov dword [esp + 0x18], 0x80
call fcn.10038570
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x870], 2
push ecx
push 0x100a2778
push 0
push eax
call fcn.100386d0
or esi, 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x870], esi
call fcn.100385c0
mov eax, dword [esp + 0x87c]
test eax, eax
je 0x10001622
push eax
lea ecx, [ebp + 0x20]
call fcn.1008a500
lea edx, [esp + 0x34]
push 1
push edx
mov dword [ebp + 0x1c], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1000172e
push edi
push edi
lea eax, [esp + 0x3c]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x10001781
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push esi
push edx
mov ecx, ebp
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], edi
call fcn.10037500
mov edi, eax
test edi, edi
je 0x100017d1
mov eax, 1
jmp 0x10001822
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push str.F:SCVICEIceServiceIceServer.cpp
mov dword [esp + 0x18], 0x71
call fcn.10038570
mov esi, eax
mov dword [esp + 0x870], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100a2734
push 1
push esi
call fcn.100386d0
add esp, 0x10
mov dword [esp + 0x870], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x10001812
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x79
push ecx
push str.F:SCVICEIceServiceIceServer.cpp
lea ecx, [esp + 0x20]
call fcn.10038570
mov esi, eax
mov dword [esp + 0x870], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100a26cc
push 1
push esi
call fcn.100386d0
add esp, 0x10
mov dword [esp + 0x870], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x10001812
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push str.F:SCVICEIceServiceIceServer.cpp
mov dword [esp + 0x18], 0x8b
call fcn.10038570
mov esi, eax
mov dword [esp + 0x870], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100a2690
push 1
push esi
call fcn.100386d0
add esp, 0x10
mov dword [esp + 0x870], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x10001812
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push str.F:SCVICEIceServiceIceServer.cpp
mov dword [esp + 0x18], 0x8f
call fcn.10038570
mov esi, eax
mov dword [esp + 0x870], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100a2650
push 1
push esi
call fcn.100386d0
add esp, 0x10
mov dword [esp + 0x870], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x10001812
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x99
push ecx
push str.F:SCVICEIceServiceIceServer.cpp
lea ecx, [esp + 0x50]
call fcn.10038570
push 0x100a2628
push 1
push eax
mov dword [esp + 0x87c], 5
call fcn.100386d0
add esp, 0xc
mov dword [esp + 0x870], esi
lea ecx, [esp + 0x48]
call fcn.100385c0
push 0
mov ecx, ebp
call fcn.10001840
mov eax, edi
mov ecx, dword [esp + 0x868]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x864
ret 8