Function at 0x47fd48
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a5f01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], esi
call fcn.0050d46e
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 1
call fcn.0050d46e
push esi
lea ecx, [esp + 0x114]
mov byte [esp + 0x12c], 2
call fcn.004b3b78
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x12c], 3
call fcn.004b3b78
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x12c], 4
call fcn.004b3b78
lea ecx, [esp + 0x70]
mov byte [esp + 0x128], 5
call fcn.004af1d8
lea eax, [esp + 0x108]
mov byte [esp + 0x128], 6
push eax
call fcn.00476fc8
add esp, 4
push 0x4ce224
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x134], 7
call fcn.0050d60c
lea ecx, [esp + 0x108]
mov byte [esp + 0x128], 9
call fcn.0050d468
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], esi
call fcn.0050d46e
push esi
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 0xa
call fcn.0050d492
mov edx, eax
mov al, byte [esp + 0x37]
mov byte [esp + 0x20], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
call dword [0x4b4618]
lea ecx, [esp + 0x110]
push 1
mov byte [esp + 0x12c], 0xb
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x7c]
call fcn.004af268
test al, al
mov eax, dword [esp + 0x24]
mov byte [esp + 0x128], 0xa
sete bl
cmp eax, esi
je 0x47febc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47feb3
cmp al, 0xff
je 0x47feb3
dec al
mov byte [ecx], al
jmp 0x47febc
push ecx
call fcn.0050d474
add esp, 4
test bl, bl
je 0x47ff90
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 9
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x128], 6
call fcn.0050d468
push 1
lea ecx, [esp + 0xf8]
mov byte [esp + 0x12c], 0xe
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0x12c], 0xd
call dword [fcn.004b461c]
mov eax, dword [esp + 0xcc]
mov byte [esp + 0x128], 0xc
cmp eax, esi
je 0x47ff3c
lea ecx, [esp + 0xa0]
call fcn.00494e58
cmp dword [esp + 0xcc], esi
jne 0x47ff27
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x128], 5
cmp eax, esi
je 0x4803a8
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x9c]
add ecx, 4
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x9c], eax
je 0x47ff79
mov eax, ecx
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jne 0x47ff82
lea ecx, [esp + 0x70]
call fcn.004951f8
cmp dword [esp + 0x9c], esi
jne 0x47ff53
jmp 0x4803a8
push 0xffffffffffffffff
lea ecx, [esp + 0x134]
call fcn.0050d48c
push 0x4d0d4c
lea ecx, [esp + 0x114]
call fcn.004b5078
push eax
lea ecx, [esp + 0x54]
call fcn.004b4218
lea ecx, [esp + 0x50]
call fcn.004b4318
cmp eax, 6
je 0x480071
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 9
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x128], 6
call fcn.0050d468
push 1
lea ecx, [esp + 0xf8]
mov byte [esp + 0x12c], 0x11
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0x12c], 0x10
call dword [fcn.004b461c]
mov eax, dword [esp + 0xcc]
mov byte [esp + 0x128], 0xf
cmp eax, esi
je 0x480043
lea ecx, [esp + 0xa0]
call fcn.00494e58
cmp dword [esp + 0xcc], esi
jne 0x48002e
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x128], 5
cmp eax, esi
je 0x4803a8
lea ecx, [esp + 0x70]
call fcn.00494dc8
cmp dword [esp + 0x9c], esi
jne 0x48005a
jmp 0x4803a8
mov ecx, dword [ebp + 0x9a8]
xor eax, eax
cmp ecx, esi
jle 0x48009a
xor ecx, ecx
mov edx, dword [ebp + 0x9a4]
inc eax
mov dword [edx + ecx + 0x48], esi
mov edx, dword [ebp + 0x9a8]
add ecx, 0x80
cmp eax, edx
jl 0x48007f
xor edi, edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], edi
call fcn.004b4e58
test eax, eax
jbe 0x4802a9
push edi
lea ecx, [esp + 0x54]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x3c]
call fcn.004b4218
lea ecx, [esp + 0x38]
call fcn.004b4318
cmp eax, 7
jne 0x48030b
push 0x4d0d48
lea ecx, [esp + 0x3c]
call fcn.004b5078
push eax
call fcn.00477948
mov ebx, eax
mov eax, dword [ebp + 0x9a8]
add esp, 4
cmp ebx, eax
jae 0x480293
push 0x4d0d40
lea ecx, [esp + 0x3c]
call fcn.004b5078
push eax
lea eax, [esp + 0x110]
push eax
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0x15
call fcn.0050d5e8
lea ecx, [esp + 0x10c]
mov byte [esp + 0x128], 0xa
call fcn.0050d468
push 0x4d0b10
lea ecx, [esp + 0x3c]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x38]
mov edi, eax
push 0x4d0b18
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [ebp + 0x9a4]
mov edx, dword [esp + 0x14]
mov esi, ebx
mov dword [esp + 0x50], eax
shl esi, 7
push edx
lea eax, [ecx + esi + 0x18]
mov eax, dword [ecx + esi + 0x18]
push eax
call dword [fcn.004b46f0]
add esp, 0xc
test eax, eax
jne 0x4801b6
mov eax, dword [ebp + 0x9a4]
add eax, esi
cmp dword [eax + 0x30], edi
jne 0x4801b6
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 0x38]
cmp edx, ecx
je 0x480237
mov eax, dword [ebp + 0x9a4]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + esi + 0x18]
call fcn.0050d5e8
mov ecx, dword [ebp + 0x9a4]
mov eax, dword [esp + 0x4c]
push ebx
push 0x4ce1a8
mov dword [ecx + esi + 0x30], edi
mov edx, dword [ebp + 0x9a4]
lea ecx, [esp + 0x20]
push ecx
mov dword [edx + esi + 0x38], eax
call fcn.0050d5e2
mov edx, dword [ebp + 0x9a4]
add esp, 0xc
mov ecx, dword [edx + esi + 0x18]
lea eax, [edx + esi]
push ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x38]
push edx
push eax
push 0x4d0b60
push ecx
call fcn.0050d5e2
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push edx
push eax
push ecx
push 0x4d0b6c
call dword [fcn.004b4098]
push 0x4d0d38
lea ecx, [esp + 0x3c]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [ebp + 0x9a4]
add esp, 4
lea ecx, [esp + 0x38]
push 0x4d0bb8
mov dword [edx + esi + 0x48], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [ebp + 0x9a4]
mov edi, dword [esp + 0x4c]
add esp, 4
mov dword [ecx + esi + 0x14], eax
mov edx, dword [ebp + 0x9a4]
mov ecx, dword [esp + 0x30]
mov eax, dword [edx + esi + 0x48]
add ecx, eax
xor esi, esi
mov dword [esp + 0x30], ecx
inc edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], edi
call fcn.004b4e58
cmp edi, eax
jb 0x4800b1
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x128], 9
mov dword [ebp + 0xac], ecx
lea ecx, [esp + 0x10]
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x128], 6
call fcn.0050d468
mov eax, dword [esp + 0xf8]
mov byte [esp + 0x128], 0x16
cmp eax, esi
je 0x480427
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x48041e
cmp al, 0xff
je 0x48041e
dec al
mov byte [ecx], al
jmp 0x480427
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 9
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x128], 6
call fcn.0050d468
push 1
lea ecx, [esp + 0xf8]
mov byte [esp + 0x12c], 0x14
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd4]
mov byte [esp + 0x12c], 0x13
call dword [fcn.004b461c]
mov eax, dword [esp + 0xcc]
mov byte [esp + 0x128], 0x12
cmp eax, esi
je 0x480383
lea ecx, [esp + 0xa0]
call fcn.00494e58
cmp dword [esp + 0xcc], esi
jne 0x48036e
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x128], 5
cmp eax, esi
je 0x4803a8
lea ecx, [esp + 0x70]
call fcn.00494dc8
cmp dword [esp + 0x9c], esi
jne 0x480396
lea ecx, [esp + 0x50]
mov byte [esp + 0x128], 4
call fcn.004b4098
lea ecx, [esp + 0x38]
mov byte [esp + 0x128], 3
call fcn.004b4098
lea ecx, [esp + 0x110]
mov byte [esp + 0x128], 2
call fcn.004b4098
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 1
call fcn.0050d468
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 0
call fcn.0050d468
lea ecx, [esp + 0x130]
mov dword [esp + 0x128], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x480725
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xf8], esi
cmp eax, esi
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], esi
je 0x480464
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x48045b
cmp al, 0xff
je 0x48045b
dec al
mov byte [ecx], al
jmp 0x480464
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xd4], esi
cmp eax, esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
je 0x4805a6
mov ecx, dword [esp + 0xac]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xb0], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xcc]
dec eax
mov dword [esp + 0xcc], eax
je 0x4804cd
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
cmp edx, eax
jne 0x480599
mov eax, dword [esp + 0xb0]
mov ecx, eax
add eax, 4
mov dword [esp + 0xb0], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xd0]
add esp, 4
cmp eax, esi
jne 0x480559
lea ecx, [esp + 0x20]
call fcn.004952b8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xa8], ecx
push eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], edi
call fcn.0050d474
add esp, 4
jmp 0x480599
mov eax, dword [esp + 0xb0]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x68]
call fcn.004952c8
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
cmp dword [esp + 0xcc], esi
jne 0x480488
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x128], 5
cmp eax, esi
je 0x4806b1
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x9c]
add ecx, 4
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x9c], eax
je 0x4805e7
mov eax, dword [esp + 0x78]
mov edx, ecx
cmp edx, eax
jne 0x4806a4
mov ecx, dword [esp + 0x80]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x80], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, esi
jne 0x48066d
lea ecx, [esp + 0x60]
call fcn.004952b8
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x78], ecx
push eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edi
call fcn.0050d474
add esp, 4
jmp 0x4806a4
mov eax, dword [esp + 0x80]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x28]
call fcn.004952c8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
cmp dword [esp + 0x9c], esi
jne 0x4805bd
lea ecx, [esp + 0x50]
mov byte [esp + 0x128], 4
call fcn.004b4098
lea ecx, [esp + 0x38]
mov byte [esp + 0x128], 3
call fcn.004b4098
lea ecx, [esp + 0x110]
mov byte [esp + 0x128], 2
call fcn.004b4098
lea ecx, [esp + 0x18]
mov byte [esp + 0x128], 1
call fcn.0050d468
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 0
call fcn.0050d468
lea ecx, [esp + 0x130]
mov dword [esp + 0x128], 0xffffffff
call fcn.0050d468
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4