Function at 0x101fe6f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov bl, byte [0x11d23ce2]
xor bh, bh
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov byte [esp + 0xe], bh
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0xf], bl
cmp byte [0x11d23ce3], bh
jne 0x101fe77e
test bl, bl
jne 0x101fe777
push 0x10468d00
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x101fe765
push 0x10468d90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x101fe765
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x1c], 1
sete bl
mov byte [esp + 0xf], bl
mov byte [0x11d23ce2], bl
mov byte [0x11d23ce3], 1
lea eax, [esp + 0x18]
push eax
push 0x20219
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101fe9a9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 0x1046d090
test bl, bl
mov esi, 0x1046d070
cmove esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x101fe99f
mov eax, dword [esp + 0x10]
inc eax
push eax
call fcn.10434352
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x101fe99f
mov eax, dword [esp + 0x10]
inc eax
push eax
push 0
push ecx
call fcn.10425c00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x20]
push 0
push 0
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x101fe993
mov eax, dword [esp + 0x1c]
xorps xmm0, xmm0
mov ebx, eax
movlpd qword [esp + 0x20], xmm0
cmp byte [eax], 0
je 0x101fe98f
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test edi, edi
jg 0x101fe98f
jl 0x101fe84a
cmp esi, dword [esp + 0x10]
jae 0x101fe98f
push 0x1046bb70
push ebx
call fcn.10425570
add esp, 8
test eax, eax
jne 0x101fe890
push 0x1046bb80
push ebx
call fcn.10425570
add esp, 8
test eax, eax
jne 0x101fe890
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101fe873
sub ecx, edx
lea eax, [ecx + 1]
add esi, eax
adc edi, 0
add ebx, eax
cmp byte [ebx], 0
jne 0x101fe836
jmp 0x101fe98f
push 0x5c
push ebx
call fcn.10425990
mov edi, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x101fe8f7
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x101fe8f7
cmp byte [esp + 0xf], 0
je 0x101fe8dc
push 0x5c
push edi
call fcn.10425990
movq xmm0, qword [0x1046d0b0]
mov ecx, eax
add esp, 8
movq qword [ecx + 1], xmm0
mov al, byte [0x1046d0b8]
mov byte [ecx + 9], al
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x101fe8e0
mov ax, word [0x10468d10]
mov word [edi], ax
mov edi, dword [esp + 0x14]
push 0x1046bb80
push ebx
call fcn.10425570
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x101fe91f
movq xmm0, qword [0x1046bb70]
movq qword [ecx], xmm0
mov eax, dword [0x1046bb78]
mov dword [ecx + 8], eax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101fe924
sub ecx, edx
mov edx, ebx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x101fe932
sub edx, esi
lea eax, [edx + ecx]
cmp eax, 0x104
ja 0x101fe98f
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x101fe947
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x101fe951
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x101fe97f
test al, 0x10
jne 0x101fe97f
mov bh, 1
jmp 0x101fe993
push 0x104
push 0
push esi
call fcn.10425c00
add esp, 0xc
mov bh, byte [esp + 0xe]
push dword [esp + 0x1c]
call fcn.10434337
add esp, 4
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bh
pop ebx
mov esp, ebp
pop ebp
ret 4