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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x75073b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x21f0
call fcn.0071f5d0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.004179a0
xor edi, edi
push 0x80
lea ecx, [esp + 0x7c]
mov dword [esp + 0x2210], edi
call fcn.00413ef0
mov eax, dword [esi]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov byte [esp + 0x2210], 1
call dword [eax + 0x1c]
mov edx, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 8]
push eax
lea ecx, [esp + 0x20]
call fcn.00413870
push str._title
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x2218], 2
call fcn.00413ad0
add esp, 0xc
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [0x894420]
push edi
push edi
push eax
mov byte [esp + 0x2220], 3
call fcn.00414e70
push eax
lea edx, [esp + 0x244]
push edx
call fcn.00415f60
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x220c], 2
call fcn.00412de0
lea ecx, [esp + 0x18]
mov byte [esp + 0x220c], 1
call fcn.00412de0
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 8]
push eax
lea ecx, [esp + 0x28]
call fcn.00413870
push str._msg
push eax
lea ecx, [esp + 0x20]
mov bl, 4
push ecx
mov byte [esp + 0x2218], bl
call fcn.00413ad0
add esp, 0xc
mov eax, dword [eax]
push edi
lea edx, [esp + 0x40]
mov byte [esp + 0x2210], 5
push edx
mov ecx, dword [0x894420]
push edi
push edi
push eax
call fcn.00414e70
push eax
lea eax, [esp + 0x644]
push eax
call fcn.00415f60
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x220c], bl
call fcn.00412de0
lea ecx, [esp + 0x20]
mov byte [esp + 0x220c], 1
call fcn.00412de0
lea ecx, [esp + 0xa38]
call fcn.006c40d0
mov dword [esp + 0x28], vtable.CBArray_class_CBStr_.0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x38], edi
mov byte [esp + 0x220c], 6
mov dword [esp + 0xa38], edi
mov byte [esp + 0x17], 0
lea ebx, [ebx]
movzx edi, byte [esp + 0x17]
push 0xa
lea ecx, [esp + 0x9c]
push ecx
push edi
call fcn.00720ef9
add esp, 0xc
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x70]
call fcn.00413870
mov ebp, eax
push 0xffffffffffffffff
push str._button
lea ecx, [esp + 0x60]
mov byte [esp + 0x2214], 7
call fcn.00413870
mov ebx, eax
mov edx, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x2210], 8
call dword [edx + 8]
push eax
lea ecx, [esp + 0x98]
call fcn.00413870
push ebx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x2218], 9
call fcn.00413970
push ebp
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x2224], 0xa
call fcn.00413970
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [0x894420]
push 0
push 2
push eax
mov byte [esp + 0x2218], 0xb
call fcn.00414e70
lea ecx, [esp + 0x18]
mov ebp, eax
mov byte [esp + 0x220c], 0xa
call fcn.00412de0
lea ecx, [esp + 0x20]
mov byte [esp + 0x220c], 9
call fcn.00412de0
lea ecx, [esp + 0x90]
mov byte [esp + 0x220c], 8
call fcn.00412de0
lea ecx, [esp + 0x58]
mov byte [esp + 0x220c], 7
call fcn.00412de0
lea ecx, [esp + 0x68]
mov byte [esp + 0x220c], 6
call fcn.00412de0
test ebp, ebp
je 0x652277
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x652265
mov ecx, dword [esp + 0xa38]
lea eax, [edi + 0x1d8a8]
mov dword [esp + ecx*4 + 0xa40], eax
mov eax, dword [esp + 0xa38]
push 0x63
lea edx, [esp + 0x40]
push edx
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*8]
lea eax, [esp + edx*8 + 0xa70]
push ebp
push eax
call fcn.00415f60
push 0xa
lea ecx, [esp + 0xac]
push ecx
push edi
call fcn.00720ef9
add esp, 0x1c
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x90]
call fcn.00413870
mov edi, eax
push 0xffffffffffffffff
push 0x7ea770
lea ecx, [esp + 0x58]
mov byte [esp + 0x2214], 0xc
call fcn.00413870
mov ebp, eax
mov edx, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x2210], 0xd
call dword [edx + 8]
push eax
lea ecx, [esp + 0x78]
call fcn.00413870
push ebp
push eax
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x2218], 0xe
call fcn.00413970
push edi
push eax
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x2224], 0xf
call fcn.00413970
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [0x894420]
push 0
push 2
push eax
mov byte [esp + 0x2218], 0x10
call fcn.00414e70
lea ecx, [esp + 0x60]
mov edi, eax
mov byte [esp + 0x220c], 0xf
call fcn.00412de0
lea ecx, [esp + 0x80]
mov byte [esp + 0x220c], 0xe
call fcn.00412de0
lea ecx, [esp + 0x70]
mov byte [esp + 0x220c], 0xd
call fcn.00412de0
lea ecx, [esp + 0x50]
mov byte [esp + 0x220c], 0xc
call fcn.00412de0
lea ecx, [esp + 0x88]
mov byte [esp + 0x220c], 6
call fcn.00412de0
test edi, edi
je 0x65225d
push 0xbf
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.00415f60
mov edx, dword [esp + 0xa48]
mov eax, dword [esp + 0x38]
add esp, 0x10
lea ecx, [esp + 0xb8]
push ecx
push edx
lea ecx, [esp + 0x30]
call dword [eax + 0x14]
mov ecx, eax
call fcn.00413310
mov ecx, dword [esp + 0xa38]
mov edx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x2c]
call dword [edx + 0x14]
mov ecx, dword [eax]
mov eax, dword [esp + 0xa38]
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
lea eax, [esp + eax*8 + 0x1a08]
push ecx
push eax
call fcn.0071e658
add esp, 8
add dword [esp + 0xa38], 1
mov al, byte [esp + 0x17]
add al, 1
cmp al, 0xa
mov byte [esp + 0x17], al
jb 0x651fa0
push 0
push 0x8619dc
push 0x865b44
push 0
push esi
call fcn.0071f44c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x65230c
mov eax, dword [edi + 0x20]
test eax, eax
lea esi, [edi + 0x20]
je 0x6522a4
cmp word [eax], 0
jne 0x6522c1
cmp dword [edi + 0x1c], 0
je 0x6522c1
lea eax, [esp + 0x238]
push eax
mov ecx, esi
call fcn.00413310
mov esi, dword [esi]
mov ecx, dword [edi + 0x1c]
mov dword [ecx + 8], esi
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
xor ecx, ecx
cmp eax, 2
setg cl
sub ecx, 1
and ecx, edi
mov eax, ecx
jne 0x6522dd
xor eax, eax
jmp 0x6522e7
mov edx, dword [eax + 4]
mov ecx, dword [edx + 8]
lea eax, [ecx + eax + 4]
lea edx, [esp + 0xa38]
push edx
lea ecx, [esp + 0x63c]
push ecx
lea edx, [esp + 0x240]
push edx
push eax
call fcn.006cc6c0
add esp, 0x10
mov esi, eax
jmp 0x652350
lea eax, [esp + 0xa38]
push eax
lea ecx, [esp + 0x63c]
push ecx
lea edx, [esp + 0x240]
push edx
push esi
call fcn.006cc6c0
mov esi, eax
mov eax, dword [0x912e94]
add esp, 0x10
mov dword [eax + 0x298], 0
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0x190
push 1
call dword [edx + 0x34]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [esp + 0x2c]
sub esi, 0x1d8a8
test eax, eax
mov byte [esp + 0x220c], 1
mov dword [esp + 0x28], vtable.CBArray_class_CBStr_.0
je 0x652394
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.00412de0
push ecx
push 8
push eax
call fcn.0071f0d2
push edi
call fcn.0040fa80
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0x220c], 0
call fcn.00412de0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x220c], 0xffffffff
call fcn.004179c0
mov ecx, dword [esp + 0x2204]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret