Function at 0x47bb10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47bfa8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 4]
mov eax, 0x47bfc4
call fcn.0046c4f4
lea edx, [ebp - 0x30]
mov eax, 0x47bfd8
call fcn.0046c4f4
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
call fcn.00404f78
mov eax, dword [ebp - 0x2c]
call fcn.004050f0
push eax
call fcn.00472d44
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47bf85
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
mov eax, dword [ebp + 8]
setne byte [eax]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x47bf0f
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 1
shl dword [ebp - 0x28], 2
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x47bc16
imul eax, dword [ebp - 0x28], 0x478
add eax, 0xc
push eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x24]
add edx, 0x30
call fcn.00404e48
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.00404f78
mov eax, dword [ebp - 0x34]
call fcn.004050f0
push eax
call fcn.00472f28
mov dword [ebp - 0x20], eax
jmp 0x47bc4e
imul eax, dword [ebp - 0x28], 0x270
add eax, 0xc
push eax
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x24]
add edx, 0x30
call fcn.00404e48
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00404f78
mov eax, dword [ebp - 0x3c]
call fcn.004050f0
push eax
call fcn.00472f28
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47bef8
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
setne bl
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x47bc8d
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x47bef8
mov dword [ebp - 0x1c], esi
test bl, bl
je 0x47bcee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov edi, dword [ebp - 0x28]
dec edi
test edi, edi
jl 0x47bcd7
inc edi
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x47bccb
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x1c]
mov word [edx + eax*8 + 0xc], 0
jmp 0x47bcd3
imul eax, ebx, 0x4e
mov byte [esi + eax*8 + 0xc], 0
inc ebx
dec edi
jne 0x47bcad
mov edx, esi
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.00472a00
mov eax, dword [ebp - 0x20]
call fcn.00470c98
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x47bed6
inc edi
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x47be04
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x1c]
cmp word [edx + eax*8 + 0xc], 0
jne 0x47bece
mov byte [ebp - 0x11], 1
push 0x104
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*8 + 0x214]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetModuleFileNameW
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x47bd83
cmp dword [ebp + 0x18], 0
je 0x47bd83
mov eax, dword [ebp + 0x18]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x47bd83
mov eax, dword [ebp + 0x18]
push eax
call sub.advapi32.dll_GetLengthSid
mov ecx, eax
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x1c]
lea edx, [edx + eax*8 + 0x41c]
mov eax, dword [ebp + 0x18]
call fcn.00403060
jmp 0x47bd9d
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x1c]
lea eax, [edx + eax*8 + 0x41c]
mov edx, 0x5b
call fcn.00407cdc
imul edi, ebx, 0x8f
mov eax, dword [ebp - 0x1c]
movzx edx, byte [ebp + 0x10]
mov byte [eax + edi*8 + 0x477], dl
mov eax, dword [ebp - 0x1c]
mov dword [eax + edi*8 + 0x478], 0
mov dword [eax + edi*8 + 0x47c], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [eax + edi*8 + 0x480], edx
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + edi*8 + 0xe]
push eax
call sub.kernel32.dll_lstrcpyW
mov eax, dword [ebp - 0x1c]
lea edx, [eax + edi*8 + 0xc]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.00472a00
jmp 0x47bed6
imul eax, ebx, 0x4e
cmp byte [esi + eax*8 + 0xc], 0
jne 0x47bece
mov byte [ebp - 0x11], 1
push 0x104
lea eax, [esi + eax*8 + 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetModuleFileNameA
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x47be6a
cmp dword [ebp + 0x18], 0
je 0x47be6a
mov eax, dword [ebp + 0x18]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x47be6a
mov eax, dword [ebp + 0x18]
push eax
call sub.advapi32.dll_GetLengthSid
mov ecx, eax
imul eax, ebx, 0x4e
lea edx, [esi + eax*8 + 0x214]
mov eax, dword [ebp + 0x18]
call fcn.00403060
jmp 0x47be7e
imul eax, ebx, 0x4e
lea eax, [esi + eax*8 + 0x214]
mov edx, 0x5b
call fcn.00407cdc
imul edi, ebx, 0x4e
movzx eax, byte [ebp + 0x10]
mov byte [esi + edi*8 + 0x26f], al
mov dword [esi + edi*8 + 0x270], 0
mov dword [esi + edi*8 + 0x274], 0
mov eax, dword [ebp + 0x14]
mov dword [esi + edi*8 + 0x278], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea eax, [esi + edi*8 + 0xd]
push eax
call sub.kernel32.dll_lstrcpy
lea edx, [esi + edi*8 + 0xc]
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.00472a00
jmp 0x47bed6
inc ebx
dec edi
jne 0x47bcfd
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x11], 0
jne 0x47bef8
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0xa
jne 0x47bbcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bf16
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bfaf
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00404c84
lea eax, [ebp - 4]
call fcn.00404c60
ret