Function at 0x1003a240
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x314
mov al, byte [0x100aba18]
push ebp
push esi
push edi
mov byte [esp + 0x18], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push 0x208
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003a2ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003a4b1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1003a434
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
add esp, 0x314
ret 0x14
lea edx, [esp + 0x18]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x1003a2c5
mov byte [eax + 1], 0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x18]
push eax
call ebp
mov edi, str.SkySruC.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
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 + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1003a286
mov cl, byte [0x100aba18]
lea edi, [esp + 0x221]
mov byte [esp + 0x220], cl
mov ecx, 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.ClientService
push str.SOFTWARESky_ProductSRU
lea edx, [esp + 0x228]
push str._s_s
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x220]
mov dword [esp + 0xc], 0
push eax
push 0x20019
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003a4b1
mov dword [esp + 0x10], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.InstallPath
push edx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003a3c5
mov eax, esi
jmp 0x1003a27e
lea ecx, [esp + 0x18]
push ecx
call ebp
mov edi, str.SkySruC
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
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 + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, str.SkySruC.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1003a286
push str.SRUGetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1003a461
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x314
ret 0x14
mov ecx, dword [esp + 0x334]
mov edx, dword [esp + 0x330]
push ecx
mov ecx, dword [esp + 0x330]
push edx
mov edx, dword [esp + 0x330]
push ecx
mov ecx, dword [esp + 0x330]
push edx
push ecx
call eax
add esp, 0x14
mov edi, eax
test edi, edi
push esi
je 0x1003a4a9
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x314
ret 0x14
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x314
ret 0x14