Function at 0x47ea40
Capabilities:
Check os version
Enumerate files on windows
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56760d
mov eax, dword fs:[0]
push eax
sub esp, 0x7dc
mov eax, dword [0x5b3680]
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
movsd qword [ebp - 0x7e0], xmm3
mov ebx, ecx
mov dword [ebp - 0x7ac], ebx
mov eax, dword [ebx]
mov esi, dword [0x5ba1b0]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + ebx]
add ecx, ebx
call dword [eax + 4]
movsd xmm0, qword [ebp + 0x10]
xor eax, eax
cmp dword [ebp + 0xc], eax
movsd qword [ebx + 0x28], xmm0
movsd xmm0, qword [ebp - 0x7e0]
sete al
mov dword [0x5ba22c], esi
mov dword [ebx + 0x24], eax
movsd qword [ebx + 0x30], xmm0
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47ead5
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x794], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x128]
push 0x114
push 0
push eax
call fcn.00531bd0
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
lea ecx, [ebp - 0x794]
jb 0x47eb31
push 0x18
push 0x58d8d0
jmp 0x47eb38
push 0x19
push str.Application_DataSkype
call fcn.00402600
lea eax, [ebp - 0x7a4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47eb77
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x7a0], edi
mov byte [ebp - 4], 3
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47eba7
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x784], esi
mov byte [ebp - 4], 5
xor edx, edx
mov ebx, dword [ebp - 0x794]
mov dword [ebp - 0x7cc], 2
mov dword [ebp - 0x798], edx
mov dword [ebp - 0x788], 0x1000
lea ecx, [ecx]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x1000
or eax, ecx
jge 0x47ec10
push 0x1000
lea ecx, [ebp - 0x7a0]
call fcn.00402590
mov edi, dword [ebp - 0x7a0]
mov edx, dword [ebp - 0x798]
cmp dword [edi - 8], 0x1000
jl 0x47f1c8
xor eax, eax
mov dword [edi - 0xc], 0x1000
push eax
push eax
push eax
push eax
mov word [edi + 0x2000], ax
lea eax, [ebp - 0x788]
push eax
push edi
push edx
push dword [ebp - 0x7a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x7b4], eax
mov edx, str.S_1_5_18
mov ecx, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x47ec79
test ax, ax
je 0x47ec75
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x47ec79
add ecx, 4
add edx, 4
test ax, ax
jne 0x47ec53
xor eax, eax
jmp 0x47ec7e
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x47f10e
mov ecx, str.S_1_5_19
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ecb8
test dx, dx
je 0x47ecb4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ecb8
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ec92
xor eax, eax
jmp 0x47ecbd
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x47f10e
mov ecx, str.S_1_5_20
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ecf7
test dx, dx
je 0x47ecf3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ecf7
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ecd1
xor eax, eax
jmp 0x47ecfc
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x47f10e
push dword [edi - 8]
push edi
call fcn.00529878
add esp, 8
test eax, eax
js 0x47f1c8
cmp eax, dword [edi - 8]
jg 0x47f1c8
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
call fcn.00402a00
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x47eacb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x78c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x78c]
push eax
push ecx
lea ecx, [edi - 0x10]
mov dword [ebp - 0x7d8], esp
mov dword [ebp - 0x790], esp
call fcn.004022c0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov byte [ebp - 4], 7
call fcn.0047e820
cmp dword [ebp - 0x7b4], 0
jne 0x47f0ea
test eax, eax
je 0x47f0ea
lea eax, [ebp - 0x7b8]
mov dword [ebp - 0x788], 0x1000
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x7a4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x788]
push eax
push dword [ebp - 0x788]
lea ecx, [ebp - 0x784]
call fcn.00402410
push eax
lea eax, [ebp - 0x7cc]
push eax
push 0
push str.ProfileImagePath
push dword [ebp - 0x7b8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x784]
push dword [esi - 8]
push esi
call fcn.00529878
add esp, 8
test eax, eax
js 0x47f1c8
cmp eax, dword [esi - 8]
jg 0x47f1c8
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x7b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x784]
push ebx
call fcn.00443ec0
mov esi, dword [ebp - 0x784]
cmp dword [esi - 4], 1
jle 0x47ee5b
push dword [esi - 0xc]
lea ecx, [ebp - 0x784]
call fcn.004024c0
mov esi, dword [ebp - 0x784]
push 0x1000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x378]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x790], eax
cmp eax, 0xffffffff
jne 0x47ee86
jmp 0x47f0ea
push ecx
lea ecx, [ebp - 0x784]
call fcn.00480d50
mov esi, dword [ebp - 0x790]
lea eax, [ebp - 0x378]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x378]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47f0dd
mov edi, dword [ebp - 0x7ac]
or ebx, 0xffffffff
jmp 0x47eed0
push 0x58c460
lea ecx, [ebp - 0x7b0]
call fcn.00434690
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x7b0]
push eax
lea edx, [ebp - 0x784]
lea ecx, [ebp - 0x79c]
call fcn.0041c210
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x34c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x7e4]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0xd
mov edx, eax
push str.main.db
lea ecx, [ebp - 0x7a8]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, ebx
mov edx, dword [ebp - 0x7e4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47ef56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov ecx, ebx
mov edx, dword [ebp - 0x79c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47ef79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov ecx, ebx
mov edx, dword [ebp - 0x7b0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47ef9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0x7a8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47f092
lea ecx, [ebp - 0x7c8]
call fcn.00446740
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x7a8]
push eax
lea ecx, [ebp - 0x7c8]
call fcn.00416320
lea eax, [ebp - 0x78c]
push eax
lea ecx, [ebp - 0x7c4]
call fcn.00416320
push ecx
push dword [ebp - 0x7c8]
lea eax, [ebp - 0x77c]
lea ecx, [ebp - 0x780]
mov dword [ebp - 0x780], eax
call fcn.00480e70
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x7c0]
mov ecx, dword [ebp - 0x780]
push 0
push 0x48001
call fcn.004eb2a0
add esp, 8
test eax, eax
je 0x47f046
push dword [ebp - 0x7c0]
call fcn.004e9690
add esp, 4
mov dword [ebp - 0x7c0], 0
lea eax, [ebp - 0x7c8]
mov dword [ebp - 0x7bc], 0
push eax
lea ecx, [edi + 0x14]
call fcn.00480fe0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x77c]
mov eax, dword [ebp - 0x780]
cmp eax, ecx
je 0x47f083
push eax
call fcn.0052adae
add esp, 4
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x7c8]
call fcn.004467f0
mov byte [ebp - 4], 7
mov ecx, ebx
mov edx, dword [ebp - 0x7a8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47f0b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x790]
lea eax, [ebp - 0x378]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47eed0
mov edi, dword [ebp - 0x7a0]
mov ebx, dword [ebp - 0x794]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x784]
mov byte [ebp - 4], 5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x78c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47f10e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x798]
inc edx
mov dword [ebp - 0x788], 0x1000
cmp dword [ebp - 0x7b4], 0x103
mov dword [ebp - 0x798], edx
jne 0x47ebe0
push dword [ebp - 0x7a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x14
mov dword [ebp - 0x7e0], 0x47f340
mov dword [ebp - 0x7dc], 0
call fcn.00529b2d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x79c], ecx
mov byte [ebp - 4], 0x19
test ecx, ecx
je 0x47f1d2
mov dword [ecx], vtable.SecC::CBindCallback.0
mov dword [ecx + 4], 0
mov byte [ebp - 4], 0x1a
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov byte [ebp - 4], 0x1b
sub esp, 0xc
movq xmm0, qword [ebp - 0x7e0]
mov eax, esp
push dword [ebp - 0x7ac]
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00481bf0
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x79c]
jmp 0x47f1d4
push 0x80070057
call fcn.004027b0
xor ecx, ecx
mov byte [ebp - 4], 5
call fcn.004348b0
mov ecx, dword [ebp - 0x7ac]
mov dword [ecx + 0x10], eax
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47f204
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or esi, 0xffffffff
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47f224
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x47f242
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
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.005295e2
mov esp, ebp
pop ebp
ret 0x10