Function at 0x47f9b0
Capabilities:
Check os version
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d77a0
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x6c
cmp word [eax], 1
push ebx
push ebp
push esi
push edi
jne 0x480007
mov ebx, dword [esp + 0x94]
mov edi, dword [ebx]
mov eax, edi
lea edx, [eax + 2]
jmp 0x47f9f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f9f0
mov ecx, dword [0x519440]
sub eax, edx
sar eax, 1
lea edx, [ecx + ecx]
cmp eax, edx
jne 0x480007
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47fa15
sub eax, edx
sar eax, 1
mov edx, eax
mov esi, edi
call fcn.0047b380
test al, al
je 0x480007
mov esi, dword [ebx + 4]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47fa40
sub eax, edx
sar eax, 1
mov edx, eax
call fcn.0047b3c0
test al, al
je 0x480007
xor ebp, ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov esi, edi
push ebp
lea edi, [esp + 0x28]
lea eax, [esp + 0x4c]
mov byte [esp + 0x88], 1
call fcn.0047b440
add esp, 4
test eax, eax
jne 0x47fff5
mov esi, dword [esp + 0x4c]
mov bl, byte [esi]
mov edi, dword [esp + 0x24]
inc esi
dec edi
mov eax, ebp
je 0x47faba
xor bl, byte [eax + esi]
inc eax
cmp eax, edi
jb 0x47fab2
push 0x50725c
call fcn.0049fc00
add esp, 4
push eax
push edi
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.004790d0
add esp, 0x10
test al, al
je 0x47fff5
mov ecx, dword [esp + 0x58]
mov edx, dword [0x5118b0]
lea eax, [ecx + 2]
mov cx, word [ecx]
mov dword [esp + 0x24], eax
lea eax, [eax + edx*2]
mov dword [esp + 0x28], eax
mov al, bl
and bl, 0xc0
sub cx, 0x20
mov byte [esp + 0x16], bl
movzx ebx, cx
and al, 0x3f
mov byte [esp + 0x17], al
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
mov edx, dword [esp + 0x94]
mov byte [esp + 0x84], 3
mov esi, dword [edx + 4]
push 1
lea edi, [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], ebp
mov dword [esp + 0x1c], ebp
call fcn.0047b440
add esp, 4
test eax, eax
jne 0x47ffe3
mov edi, dword [esp + 0x20]
cmp edi, ebp
jbe 0x47fb8c
lea ecx, [ecx]
mov ecx, dword [esp + 0x40]
xor byte [ecx + eax], bl
inc eax
cmp eax, edi
jb 0x47fb80
lea eax, [esp + 0x60]
push eax
push 0x50725c
call fcn.0049fc00
mov esi, dword [esp + 0x48]
add esp, 4
push eax
push edi
push esi
push 4
push ebp
push ebp
push ebp
call fcn.00477e90
add esp, 0x20
test al, al
jne 0x47fc1f
cmp esi, ebp
je 0x47fbd2
mov ecx, dword [esp + 0x3c]
push ecx
push ebp
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
push edx
push ebp
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
add esp, 4
push eax
push ebp
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push ebp
push 0x50725c
call fcn.0049fc00
add esp, 4
push eax
push edi
push esi
push 2
push ebp
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00477e90
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x35], al
mov eax, dword [0x5118b0]
push eax
push 0x5077b8
push ecx
call fcn.004c6e79
add esp, 0x2c
test eax, eax
jne 0x47ffe3
mov edx, dword [0x5118b0]
mov eax, dword [esp + 0x34]
push edx
push 0x5077b8
push eax
call fcn.004c6e79
add esp, 0xc
test eax, eax
jne 0x47ffe3
mov al, byte [esp + 0x16]
cmp al, 0x80
je 0x47fce8
cmp al, 0x40
je 0x47fce8
test al, al
jne 0x47ffe3
movzx ecx, byte [esp + 0x17]
cmp ecx, dword [0x51148c]
je 0x47fd3d
lea ecx, [esp + 0x3c]
call fcn.00414f70
lea ecx, [esp + 0x30]
call fcn.00414f70
lea ecx, [esp + 0x48]
call fcn.00414f70
lea ecx, [esp + 0x54]
call fcn.00414f70
mov eax, 2
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
test al, al
je 0x47fc9b
mov esi, dword [esp + 0xa4]
mov ecx, 0x518a90
call fcn.0046da90
test al, al
je 0x47fc9b
lea ecx, [esp + 0x3c]
call fcn.00414f70
lea ecx, [esp + 0x30]
call fcn.00414f70
lea ecx, [esp + 0x48]
call fcn.00414f70
lea ecx, [esp + 0x54]
call fcn.00414f70
mov eax, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov esi, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x1c], edx
mov cx, word [esi]
push 0x10
lea edx, [esp + 0x20]
push ebp
push edx
mov word [esp + 0x28], cx
call fcn.004c6659
mov ecx, dword [esp + 0xa4]
add esp, 0xc
push 0x10
push ebp
add esi, 2
push esi
mov dword [ecx], eax
call fcn.004c6659
mov edx, 0xfff
sub edx, eax
mov eax, dword [esp + 0x9c]
add esp, 0xc
mov esi, 0x51939c
mov word [eax], dx
call fcn.00415eb0
movzx ecx, bx
and ecx, 0x80000001
jns 0x47fda2
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x47fe8e
mov edx, dword [esp + 0x98]
xor ebx, ebx
cmp dword [edx], ebp
jle 0x47ff73
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
sub eax, ebp
mov dword [esp + 0x24], eax
jmp 0x47fdd4
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x15], 0
je 0x47fd01
push 0
push 0x50725c
call fcn.0049fc00
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
mov eax, dword [esp + 0x48]
push edi
push eax
push 1
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00477e90
mov byte [esp + 0x35], al
add esp, 0x20
lea eax, [esp + 0x30]
call fcn.00415dc0
mov ecx, dword [esp + 0x34]
cmp word [ecx + eax*2 - 2], 0xa
lea eax, [ecx + eax*2 - 2]
jne 0x47fe30
xor edx, edx
mov word [eax], dx
mov esi, 0x51939c
call fcn.00415e70
lea edi, [esp + 0x30]
mov esi, eax
call fcn.004150f0
mov ecx, dword [esp + 0x24]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [ebp], eax
mov eax, dword [esp + 0xac]
push 1
mov dword [ecx + ebp], eax
mov edx, dword [ebp]
push 0x4e7a74
push 0x511498
push edx
xor eax, eax
call fcn.004a7990
mov eax, dword [esp + 0xb4]
inc ebx
add esp, 0x1c
add ebp, 4
cmp ebx, dword [eax]
jl 0x47fdd0
jmp 0x47ff73
mov ecx, dword [esp + 0x98]
mov ebx, dword [ecx]
dec ebx
cmp ebx, 0xffffffff
jle 0x47ff73
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
sub eax, edx
lea ebp, [edx + ebx*4]
mov dword [esp + 0x24], eax
jmp 0x47fec4
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x15], 0
je 0x47fd01
push 0
push 0x50725c
call fcn.0049fc00
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
mov eax, dword [esp + 0x48]
push edi
push eax
push 1
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00477e90
mov byte [esp + 0x35], al
add esp, 0x20
lea eax, [esp + 0x30]
call fcn.00415dc0
mov ecx, dword [esp + 0x34]
cmp word [ecx + eax*2 - 2], 0xa
lea eax, [ecx + eax*2 - 2]
jne 0x47ff20
xor edx, edx
mov word [eax], dx
mov esi, 0x51939c
call fcn.00415e70
lea edi, [esp + 0x30]
mov esi, eax
call fcn.004150f0
mov ecx, dword [esp + 0x24]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [ebp], eax
mov eax, dword [esp + 0xac]
push 1
mov dword [ecx + ebp], eax
mov edx, dword [ebp]
push 0x4e7a74
push 0x511498
push edx
xor eax, eax
call fcn.004a7990
dec ebx
add esp, 0x1c
sub ebp, 4
cmp ebx, 0xffffffff
jg 0x47fec0
mov eax, dword [0x518a90]
mov edi, dword [esp + 0x2c]
mov byte [0x5193a8], 1
mov word [0x5193aa], di
cmp eax, 1
je 0x47ff99
cmp eax, 3
je 0x47ff99
cmp eax, 4
jne 0x47ffd9
mov esi, dword [esp + 0xa4]
mov ecx, 0x518a90
call fcn.0046da50
lea ecx, [edi*4]
or ecx, edi
add ecx, ecx
test al, al
mov eax, dword [esp + 0x90]
mov edx, 0xfff
jne 0x47ffc9
add ecx, ecx
add ecx, ecx
xor cx, word [eax]
and cx, dx
mov word [eax], cx
mov byte [0x5193a8], 0
mov eax, dword [esp + 0x8c]
mov byte [eax], 1
lea ecx, [esp + 0x3c]
call fcn.00414f70
lea ecx, [esp + 0x30]
call fcn.00414f70
lea ecx, [esp + 0x48]
call fcn.00414f70
lea ecx, [esp + 0x54]
call fcn.00414f70
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret