Function at 0x1002a134
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006178b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov byte [esp + 0x28], cl
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x30], edi
test cl, cl
je 0x1002a190
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x1002a783
push 0x6266
push 0x671
push 0x1956
mov dl, 1
call fcn.100298b8
add esp, 0xc
jmp 0x1002a783
xor ebx, ebx
mov dword [esp + 0x28], 0xb4e1
mov byte [esp + 0x23], bl
push 1
pop esi
cmp byte [esp + 0x23], bl
je 0x1002a241
mov dword [esp + 0x18], 0xb53
cmp dword [esp + 0x18], 0xe02
jle 0x1002a20f
mov esi, ebx
mov edi, ebx
mov ecx, edi
mov eax, esi
sar eax, cl
lea ecx, [esp + 0xd8]
cdq
push edx
push eax
call fcn.10002b6b
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002a1e0
mov eax, dword [eax]
push eax
call fcn.10049d9f
pop ecx
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.10017003
inc edi
cmp edi, 0xdb2
jl 0x1002a1c1
inc esi
cmp esi, 0x41a8
jl 0x1002a1bf
mov edi, dword [esp + 0x30]
xor esi, esi
inc esi
push ebx
push 0x2414
push ebx
push 0x1b80
push ebx
push 0x16
call dword [sym.imp.USER32.dll_DrawTextExW]
cmp dword [esp + 0x18], 0x976
jge 0x1002a239
push str.xoyms_urggi_adi_aakvquqie_pws_myml_ywtvlxps_alelptfp_oumhsy_dfatz_spk
call fcn.10049d9f
pop ecx
or dword [esp + 0xfc], 0xffffffff
push ecx
push 0x435b
xor cl, cl
call fcn.10029860
pop ecx
pop ecx
push dword [ebp + 0x10]
lea ecx, [esp + 0x80]
call fcn.100169ed
push 2
pop eax
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x100], eax
call fcn.1000216e
mov byte [esp + 0xfc], 3
lea eax, [esp + 0x58]
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], 4
push ecx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0x97a2
mov dword [esp + 0x2c], esi
push eax
call fcn.1002c5db
pop ecx
pop ecx
mov dword [esp + 0x24], ebx
jmp 0x1002a2c5
mov eax, dword [esp + 0x24]
mov dword [esp + eax*4 + 0xa4], 0x51ae9a07
inc dword [esp + 0x24]
cmp dword [esp + 0x24], 4
jl 0x1002a2b2
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], esi
jg 0x1002a3ee
mov dword [esp + 0x14], 0x8ace4b0a
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], 5
mov dword [esp + 0x38], 0xffffffff
push esi
call fcn.1000216e
mov byte [esp + 0xfc], 4
lea eax, [esp + 0xb8]
push ecx
mov dword [esp + 0x3c], 9
lea ecx, [esp + 0x74]
mov dword [esp + 0x58], 0xd4ac961f
mov dword [esp + 0x3c], 6
push eax
call fcn.1002a08b
mov eax, dword [esp + 0x18]
xor edx, edx
mov eax, dword [esp + 0x18]
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
pop ecx
pop ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
push 0xfffffffffffffff8
setg dl
xor ebx, ebx
add edx, dword [esp + 0xac]
mov eax, dword [esp + 0x5c]
cmp dword [eax + esi*4], edx
mov eax, dword [esp + 0x34]
setl bl
xor ecx, ecx
cmp ebx, eax
mov eax, dword [esp + 0x18]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0xb0]
setne dl
sub edx, eax
xor eax, eax
mov dword [esp + 0xb4], edx
cmp edx, 0x4e48
pop edx
setle al
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
cmp edx, dword [eax + ecx*4]
lea ecx, [esp + 0x70]
sbb eax, eax
inc eax
mov dword [esp + 0x30], eax
mov byte [esp + 0xfc], 3
call fcn.100021cb
inc dword [esp + 0x10]
xor esi, esi
inc esi
cmp dword [esp + 0x10], esi
jle 0x1002a2da
xor ebx, ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xfc], 2
call fcn.100021cb
push ecx
push dword [ebp + 0x18]
lea ecx, [esp + 0x84]
call fcn.1002e316
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0x36b16b47
mov dword [esp + 0x28], 0xffffffff
push 3
mov dword [esp + 0x2c], 8
mov dword [esp + 0x14], ebx
pop ecx
jmp 0x1002a440
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x44], esi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x1002a434
mov dword [esp + 0x10], ebx
jmp 0x1002a45f
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xbc], 0x1b4373c9
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x1002a44c
mov dword [esp + 0x44], ebx
jmp 0x1002a4bb
mov dword [esp + 0x18], 0xb8f3
mov dword [esp + 0x10], ebx
jmp 0x1002a48c
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xc8], 0x5309757a
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x1002a479
cmp dword [esp + 0x18], ebx
jne 0x1002a4a9
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xd0], eax
inc dword [esp + 0x44]
cmp dword [esp + 0x44], 0xa
jle 0x1002a46b
mov dword [esp + 0x14], esi
jmp 0x1002a4e5
push 0x4710
mov byte [esp + 0x26], bl
lea edx, [esp + 0x26]
push 0x702f
call fcn.1002c58d
dec dword [esp + 0x1c]
pop ecx
pop ecx
cmp dword [esp + 0x14], 0xffffffe7
jle 0x1002a4c8
cmp dword [esp + 0x2c], 0xffffffff
je 0x1002a537
push 0xa49
push 0x85e
push 0xe20
push ebx
push esi
push 0x73b1
push 0x6d68
push 0x3923
lea eax, [esp + 0x9c]
mov edx, 0x395f
push eax
push ebx
push 0xe72
push 0xc72
lea ecx, [esp + 0x5c]
call fcn.10029600
add esp, 0x30
push 0x2e84
push ebx
push 0x1a47
push dword [ebp + 0x18]
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x3c]
call fcn.1002953b
add esp, 0x10
lea ecx, [esp + 0x64]
push esi
call fcn.1000216e
lea eax, [esp + 0xb4]
mov byte [esp + 0xfc], 5
push eax
push esi
lea eax, [esp + 0x6c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x24], 0x25996fd0
mov edx, 0x3c1a
mov dword [esp + 0x4c], 0x37f5e175
mov ecx, 0x45bc
push 0x243f
call fcn.1002953b
add esp, 0x10
lea eax, [esp + 0x1c]
mov edx, 0x49c7
push ebx
push 0x736e
push 0x7e32
push ecx
push eax
push ecx
lea eax, [esp + 0x7c]
push eax
push 0x3c69
push 0x3064
call fcn.10029e26
add esp, 0x24
mov dword [esp + 0x1c], 0x13
jmp 0x1002a6fe
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x14], ebx
jmp 0x1002a6ef
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x50], 2
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
jl 0x1002a6eb
push esi
lea ecx, [esp + 0x98]
call fcn.1000216e
push ebx
push ecx
push 0x36ee
sub esp, 0x14
mov byte [esp + 0x11c], 6
lea eax, [esp + 0xb4]
push eax
push ecx
lea ecx, [esp + 0xc8]
call fcn.10029762
mov eax, dword [esp + 0x38]
add esp, 0x28
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x18], ebx
je 0x1002a660
cmp dword [esp + 0x10], ebx
jne 0x1002a662
mov esi, ebx
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + eax*4]
add eax, esi
cmp dword [ecx + edx*4], eax
mov eax, dword [esp + 0x10]
setle bl
xor edx, edx
cmp ebx, eax
setne dl
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
neg edx
sbb edx, edx
inc edx
neg edx
sub edx, 0x1b43
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x44]
setle cl
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x48], ecx
push eax
xor dl, dl
call fcn.100298b8
add esp, 0xc
mov byte [esp + 0xfc], 5
lea ecx, [esp + 0x94]
call fcn.100021cb
dec dword [esp + 0x10]
push 0
pop ebx
push 1
pop esi
jns 0x1002a60d
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xfffffff0
jl 0x1002a5ef
dec dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xfffffffb
jne 0x1002a5de
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc], 2
call fcn.100021cb
push 0x3f00
push 0x69b7
lea eax, [esp + 0x34]
mov edx, 0x30c4
push eax
push ebx
push esi
push 0x6479
push 0x7633
lea eax, [esp + 0x98]
mov ecx, 0x5fdf
push eax
push 0x513e
push esi
push 0x217e
push 0x4d6
call fcn.10029600
lea eax, [esp + 0xac]
add esp, 0x30
cmp edi, eax
je 0x1002a775
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.100171dc
push ebx
push esi
lea ecx, [esp + 0x84]
call fcn.1001730c
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret