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

Disassembly:
push 0xffffffffffffffff
push 0x4b1075
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x4c]
push ebx
mov dword [esp + 0x110], ebx
call fcn.004b3b78
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x110], 1
call fcn.004b3b78
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x110], 2
call fcn.004b3b78
push ebx
lea ecx, [esp + 0x60]
mov byte [esp + 0x110], 3
call fcn.004b3b78
lea ecx, [esp + 0x6c]
mov byte [esp + 0x10c], 4
call fcn.004af1d8
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 5
call fcn.0050d46e
push ebx
lea ecx, [esp + 0x118]
mov byte [esp + 0x110], 6
call fcn.0050d492
mov edx, eax
mov al, byte [esp + 0x17]
or ebp, 0xffffffff
mov byte [esp + 0x2c], al
mov edi, edx
mov ecx, ebp
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x34]
call dword [0x4b4618]
lea ecx, [esp + 0x4c]
push 1
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x118], 7
call fcn.004af268
and eax, 0xff
mov byte [esp + 0x10c], 6
mov esi, eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4f8b58
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f8b4f
cmp al, 0xff
je 0x4f8b4f
dec al
mov byte [ecx], al
jmp 0x4f8b58
push ecx
call fcn.0050d474
add esp, 4
push ebp
lea ecx, [esp + 0x118]
call fcn.0050d48c
cmp esi, ebx
jne 0x4f8c02
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 5
call fcn.0050d468
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 0xa
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 9
call dword [fcn.004b461c]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 8
cmp eax, ebx
je 0x4f8bd4
lea ecx, [esp + 0x9c]
call fcn.00494e58
cmp dword [esp + 0xc8], ebx
jne 0x4f8bbf
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 4
cmp eax, ebx
je 0x4f8cb8
lea ecx, [esp + 0x6c]
call fcn.00494dc8
cmp dword [esp + 0x98], ebx
jne 0x4f8beb
jmp 0x4f8cb8
push 0x4d0c58
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
lea ecx, [esp + 0x1c]
call fcn.004b4218
lea ecx, [esp + 0x18]
call fcn.004b4318
cmp eax, 6
je 0x4f8d16
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 5
call fcn.0050d468
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 0xd
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 0xc
call dword [fcn.004b461c]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 0xb
cmp eax, ebx
je 0x4f8c93
lea ecx, [esp + 0x9c]
call fcn.00494e58
cmp dword [esp + 0xc8], ebx
jne 0x4f8c7e
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 4
cmp eax, ebx
je 0x4f8cb8
lea ecx, [esp + 0x6c]
call fcn.00494dc8
cmp dword [esp + 0x98], ebx
jne 0x4f8ca6
lea ecx, [esp + 0x5c]
mov byte [esp + 0x10c], 3
call fcn.004b4098
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c], 2
call fcn.004b4098
lea ecx, [esp + 0x18]
mov byte [esp + 0x10c], 1
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x10c], 0
call fcn.004b4098
lea ecx, [esp + 0x114]
mov dword [esp + 0x10c], ebp
call fcn.0050d468
xor eax, eax
jmp 0x4f8f32
lea ecx, [esp + 0x18]
call fcn.004b4e58
test eax, eax
jbe 0x4f8de8
mov eax, dword [esp + 0x118]
mov ebp, dword [fcn.004b4724]
lea edi, [eax + 0x48]
push ebx
lea ecx, [esp + 0x1c]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x40]
call fcn.004b4218
push 0x4d0c4c
lea ecx, [esp + 0x40]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
xor esi, esi
mov ecx, edi
cmp dword [ecx], 0
je 0x4f8d70
cmp dword [ecx + 8], eax
je 0x4f8d7b
inc esi
add ecx, 0x3c
cmp esi, 3
jl 0x4f8d66
jmp 0x4f8dd1
push 0x4d15f0
lea ecx, [esp + 0x40]
call fcn.004b5078
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x110], 0xe
call fcn.0050d5e8
lea ecx, [esp + 0x28]
mov byte [esp + 0x10c], 6
call fcn.0050d468
mov edx, dword [esp + 0x10]
lea eax, [esi + esi*2]
push 0x13
push edx
lea eax, [eax + eax*4]
lea ecx, [edi + eax*4 + 0x28]
push ecx
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
inc ebx
call fcn.004b4e58
cmp ebx, eax
jb 0x4f8d37
or ebp, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 5
call fcn.0050d468
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 0x11
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 0x10
call dword [fcn.004b461c]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 0xf
cmp eax, ebx
je 0x4f8e8b
mov eax, dword [esp + 0xa8]
push ebx
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xac], eax
call fcn.004953a8
mov eax, dword [esp + 0xc8]
dec eax
mov dword [esp + 0xc8], eax
je 0x4f8e76
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
cmp edx, eax
jne 0x4f8e82
lea ecx, [esp + 0x9c]
call fcn.004951f8
cmp dword [esp + 0xc8], ebx
jne 0x4f8e3a
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 4
cmp eax, ebx
je 0x4f8ed6
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x98]
add ecx, 4
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], eax
je 0x4f8ec4
mov eax, ecx
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jne 0x4f8ecd
lea ecx, [esp + 0x6c]
call fcn.004951f8
cmp dword [esp + 0x98], ebx
jne 0x4f8e9e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x10c], 3
call fcn.004b4098
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c], 2
call fcn.004b4098
lea ecx, [esp + 0x18]
mov byte [esp + 0x10c], 1
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x10c], 0
call fcn.004b4098
lea ecx, [esp + 0x114]
mov dword [esp + 0x10c], ebp
call fcn.0050d468
mov eax, 1
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret 8