Function at 0x4a2ef8
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4a96c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.0050d46e
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x15c], edi
call fcn.0050d46e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 1
call fcn.0050d46e
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 2
call fcn.0050d46e
lea ecx, [esp + 0x24]
mov byte [esp + 0x15c], 3
call fcn.004c5a38
lea ecx, [esp + 0x38]
mov byte [esp + 0x15c], 4
call fcn.0050d46e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x15c], 5
call fcn.0050d46e
push edi
lea ecx, [esp + 0x128]
mov byte [esp + 0x160], 6
call fcn.004b3b78
push edi
lea ecx, [esp + 0x138]
mov byte [esp + 0x160], 7
call fcn.004b3b78
push edi
lea ecx, [esp + 0x70]
mov byte [esp + 0x160], 8
call fcn.004b3b78
push edi
lea ecx, [esp + 0x118]
mov byte [esp + 0x160], 9
call fcn.004b3b78
push edi
lea ecx, [esp + 0x148]
mov byte [esp + 0x160], 0xa
call fcn.004b3b78
lea ecx, [esp + 0x7c]
mov byte [esp + 0x15c], 0xb
call fcn.004af1d8
mov edx, dword [0x4de8b0]
push edi
lea eax, [esp + 0x34]
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [edx + 0x110]
mov byte [esp + 0x16c], 0xc
call fcn.00479dc8
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
mov ebx, dword [esp + 0x164]
cmp dword [ebx + 0x58], 1
jne 0x4a3097
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0eb8
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
cmp ebx, dword [ebp + 4]
je 0x4a3097
mov ecx, dword [ebx + 0x24]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0ec0
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x164], 0xd
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 0xc
call fcn.004c5ab8
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x164], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x2c]
mov byte [esp + 0x164], 0xc
call fcn.004c5ab8
mov ecx, dword [ebx + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0ed0
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
call fcn.004c5a98
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 0xf
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0xc
call fcn.0050d468
mov eax, dword [0x4de8b0]
push 1
push 1
mov edx, dword [eax + 0x110]
lea ecx, [eax + 0x110]
call dword [edx + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x20]
call fcn.00470bf8
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4d8880
call fcn.0050d618
mov eax, dword [ebp + 4]
mov esi, dword [ebx + 0x20]
mov byte [esp + 0x174], 0x10
mov ecx, dword [eax + 0x20]
xor ecx, esi
push ecx
mov eax, dword [ebx + 0x58]
mov edx, esp
mov dword [esp + 0x3c], esp
push ecx
push edi
push eax
push edx
mov ecx, ebp
call fcn.004a2258
lea ecx, [esp + 0x2c]
mov byte [esp + 0x178], 0xc
push ecx
mov ecx, ebp
call fcn.004a2e38
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 0x11
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0xc
call fcn.0050d468
mov edx, dword [0x4de8b0]
push 1
push edi
mov eax, dword [edx + 0x110]
lea ecx, [edx + 0x110]
call dword [eax + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0050d48c
push edi
lea ecx, [esp + 0x20]
call fcn.0050d492
mov cl, byte [esp + 0x37]
mov esi, eax
mov byte [esp + 0x4c], cl
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x50]
push edi
mov dword [esp + 0x18], edi
call dword [fcn.004b4614]
test al, al
je 0x4a3287
mov ecx, edi
mov edi, dword [esp + 0x50]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0x124]
push 1
lea eax, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x168], 0x12
call fcn.004af268
and eax, 0xff
xor edi, edi
mov esi, eax
mov eax, dword [esp + 0x50]
cmp eax, edi
mov dword [esp + 0x20], esi
mov byte [esp + 0x15c], 0xc
je 0x4a32e4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4a32db
cmp al, 0xff
je 0x4a32db
dec al
mov byte [ecx], al
jmp 0x4a32e4
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0050d48c
cmp esi, edi
je 0x4a3318
lea ecx, [esp + 0x124]
call fcn.004b4318
xor ecx, ecx
cmp eax, 7
sete cl
mov eax, ecx
cmp eax, edi
mov dword [esp + 0x20], eax
jne 0x4a3326
push 0x4d15dc
jmp 0x4a331d
push 0x4d13b4
lea ecx, [esp + 0x40]
call fcn.0050d47a
lea edx, [esp + 0x38]
push edi
lea eax, [esp + 0x128]
push edx
push eax
mov ecx, ebp
call fcn.004a23a8
mov ecx, dword [esp + 0x20]
and ecx, eax
mov dword [esp + 0x20], ecx
jne 0x4a363d
mov esi, dword [esp + 0x168]
cmp esi, edi
je 0x4a3384
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0050d5e8
lea edx, [esp + 0x3c]
lea ecx, [esi + 4]
push edx
call fcn.0050d5e8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
push 1
lea ecx, [esp + 0x104]
mov byte [esp + 0x160], 0x15
call dword [fcn.004b461c]
mov ecx, dword [esp + 0xe0]
cmp ecx, edi
je 0x4a33c1
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4a33b8
cmp al, 0xff
je 0x4a33b8
dec al
mov byte [ecx], al
jmp 0x4a33c1
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xe0], edi
cmp eax, edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], edi
mov byte [esp + 0x15c], 0x13
je 0x4a343a
mov eax, dword [esp + 0xb8]
push edi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xbc], eax
call fcn.004953a8
mov eax, dword [esp + 0xd8]
dec eax
mov dword [esp + 0xd8], eax
je 0x4a3425
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
cmp eax, ecx
jne 0x4a3431
lea ecx, [esp + 0xac]
call fcn.004951f8
cmp dword [esp + 0xd8], edi
jne 0x4a33e9
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x15c], 0xb
cmp eax, edi
je 0x4a355b
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0xa8]
add ecx, 4
dec eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0xa8], eax
je 0x4a3480
cmp ecx, dword [esp + 0x84]
jne 0x4a354e
mov ecx, dword [esp + 0x8c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x8c], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xac]
add esp, 4
cmp eax, edi
jne 0x4a350e
lea ecx, [esp + 0x4c]
call fcn.004952b8
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x80], eax
push edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], esi
call fcn.0050d474
add esp, 4
xor edi, edi
jmp 0x4a354e
mov eax, dword [esp + 0x8c]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x64]
call fcn.004952c8
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
cmp dword [esp + 0xa8], edi
jne 0x4a3451
lea ecx, [esp + 0x144]
mov byte [esp + 0x15c], 0xa
call fcn.004b4098
lea ecx, [esp + 0x114]
mov byte [esp + 0x15c], 9
call fcn.004b4098
lea ecx, [esp + 0x6c]
mov byte [esp + 0x15c], 8
call fcn.004b4098
lea ecx, [esp + 0x134]
mov byte [esp + 0x15c], 7
call fcn.004b4098
lea ecx, [esp + 0x124]
mov byte [esp + 0x15c], 6
call fcn.004b4098
lea ecx, [esp + 0x3c]
mov byte [esp + 0x15c], 0x16
call fcn.0050d468
lea ecx, [esp + 0x38]
mov byte [esp + 0x15c], 4
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x15c], 3
call fcn.004c5a78
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 2
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 1
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x15c], 0
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4a3c0f
push 0x4d2974
lea ecx, [esp + 0x128]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
cmp eax, edi
mov dword [ebx + 0x8d4], eax
je 0x4a3847
push 0x4d296c
lea ecx, [esp + 0x128]
call fcn.004b5078
push eax
lea ecx, [esp + 0x138]
call fcn.004b4218
lea ecx, [esp + 0x134]
call fcn.004b4e58
mov esi, eax
lea eax, [ebx + 0x80c]
mov dword [esp + 0x18], esi
mov ecx, 6
mov dword [eax], edi
add eax, 0x20
dec ecx
jne 0x4a36a0
test esi, esi
mov dword [esp + 0x10], edi
jbe 0x4a381f
push edi
lea ecx, [esp + 0x138]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x70]
call fcn.004b4218
push 0x4d0d10
lea ecx, [esp + 0x70]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
cmp eax, 6
jge 0x4a3812
shl eax, 5
push 0x4d0c4c
lea ecx, [esp + 0x70]
lea esi, [eax + ebx + 0x80c]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov ecx, ebp
mov dword [esi + 8], eax
push eax
call fcn.004a2208
push 0x4d2968
lea ecx, [esp + 0x70]
mov dword [esi + 4], eax
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esi + 0xc], eax
push 0x4d0d10
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esi + 0x10], eax
push 0x4d0cec
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esi + 0x14], eax
push 0x4d0cfc
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esi + 0x18], eax
push 0x4d2964
call fcn.004b5078
push eax
lea ecx, [esp + 0x118]
call fcn.004b4218
lea ecx, [esp + 0x114]
call fcn.004b4318
cmp eax, 6
jne 0x4a3808
lea ecx, [esp + 0x114]
xor edi, edi
call fcn.004b4e58
test eax, eax
jbe 0x4a37ef
push edi
lea ecx, [esp + 0x118]
call fcn.004b4f08
push eax
call fcn.00477948
mov ecx, dword [ebp + 4]
add esp, 4
cmp eax, dword [ecx + 0x20]
je 0x4a37ef
lea ecx, [esp + 0x114]
inc edi
call fcn.004b4e58
cmp edi, eax
jb 0x4a37c0
lea ecx, [esp + 0x114]
call fcn.004b4e58
cmp edi, eax
mov edi, dword [esp + 0x10]
sbb edx, edx
neg edx
mov dword [esi + 0x1c], edx
mov dword [esi], 1
mov esi, dword [esp + 0x18]
inc edi
cmp edi, esi
mov dword [esp + 0x10], edi
jb 0x4a36b4
cmp esi, 6
jbe 0x4a3830
mov dword [esp + 0x18], 6
mov esi, dword [esp + 0x18]
mov ecx, ebp
mov dword [ebx + 0x8cc], esi
call fcn.004fa858
mov dword [ebx + 0x8d0], eax
xor edi, edi
jmp 0x4a3853
mov dword [ebx + 0x8cc], edi
mov dword [ebx + 0x8d0], edi
mov esi, dword [esp + 0x168]
cmp esi, edi
je 0x4a388c
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.0050d5e8
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 4]
call fcn.0050d5e8
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x104]
mov byte [esp + 0x15c], 0x17
cmp ecx, edi
je 0x4a38ba
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4a38b1
cmp al, 0xff
je 0x4a38b1
dec al
mov byte [ecx], al
jmp 0x4a38ba
push ecx
call fcn.0050d474
add esp, 4
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x104], edi
cmp ecx, edi
mov dword [esp + 0x108], edi
mov dword [esp + 0x10c], edi
je 0x4a38f5
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4a38ec
cmp al, 0xff
je 0x4a38ec
dec al
mov byte [ecx], al
jmp 0x4a38f5
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xe0], edi
cmp eax, edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], edi
je 0x4a3a24
mov ecx, dword [esp + 0xb8]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xbc], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xd8]
dec eax
mov dword [esp + 0xd8], eax
je 0x4a395e
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
cmp edx, eax
jne 0x4a3a17
mov eax, dword [esp + 0xbc]
mov ecx, eax
add eax, 4
mov dword [esp + 0xbc], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xdc]
add esp, 4
cmp eax, edi
jne 0x4a39ec
lea ecx, [esp + 0x5c]
call fcn.004952b8
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xb4], ecx
push eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], esi
call fcn.0050d474
add esp, 4
xor edi, edi
jmp 0x4a3a17
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xb4], edx
cmp dword [esp + 0xd8], edi
jne 0x4a3919
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x15c], 0xb
cmp eax, edi
je 0x4a3b30
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0xa8]
add ecx, 4
dec eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0xa8], eax
je 0x4a3a6a
cmp ecx, dword [esp + 0x84]
jne 0x4a3b23
mov ecx, dword [esp + 0x8c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x8c], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xac]
add esp, 4
cmp eax, edi
jne 0x4a3af8
lea ecx, [esp + 0x5c]
call fcn.004952b8
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x80], eax
push edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], esi
call fcn.0050d474
add esp, 4
xor edi, edi
jmp 0x4a3b23
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x84], edx
cmp dword [esp + 0xa8], edi
jne 0x4a3a3b
lea ecx, [esp + 0x144]
mov byte [esp + 0x15c], 0xa
call fcn.004b4098
lea ecx, [esp + 0x114]
mov byte [esp + 0x15c], 9
call fcn.004b4098
lea ecx, [esp + 0x6c]
mov byte [esp + 0x15c], 8
call fcn.004b4098
lea ecx, [esp + 0x134]
mov byte [esp + 0x15c], 7
call fcn.004b4098
lea ecx, [esp + 0x124]
mov byte [esp + 0x15c], 6
call fcn.004b4098
lea ecx, [esp + 0x3c]
mov byte [esp + 0x15c], 0x18
call fcn.0050d468
lea ecx, [esp + 0x38]
mov byte [esp + 0x15c], 4
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x15c], 3
call fcn.004c5a78
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 2
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 1
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x15c], 0
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0050d468
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x150
ret 8