Function at 0x40f390
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6717a4
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x703580]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x703580]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x2c]
and eax, 0xfffffe06
or eax, 6
push 0x10
mov ebx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
call fcn.0046ab72
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x118], edi
cmp eax, edi
je 0x40f40e
mov esi, eax
call fcn.004078e0
mov edi, eax
lea eax, [esp + 0x48]
mov edx, ebx
mov dword [esp + 0x118], 1
call fcn.00418cd0
mov esi, eax
lea eax, [esp + 0x38]
call fcn.0041a6a0
mov ecx, dword [eax]
test ecx, ecx
jne 0x40f439
xor edx, edx
jmp 0x40f43b
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov esi, dword [edx + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
cmp esi, eax
ja 0x40f44f
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
movsx edx, byte [eax + 8]
mov ecx, dword [esp + 0x2c]
mov esi, ecx
xor esi, edx
mov edx, dword [eax]
and esi, 0xff
mov byte [eax + 8], cl
xor ecx, esi
mov esi, dword [eax + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
mov dword [eax + 4], edi
mov esi, edx
shr esi, 8
and esi, 1
mov edi, ecx
shl esi, 8
xor esi, ecx
xor edi, edx
and edi, 0x100
and esi, 0x100
xor ecx, esi
xor edi, edx
mov dword [eax + 8], edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x54]
cmp ecx, dword [ebx + 0x50]
je 0x40f4de
lea ebx, [ebx]
mov ecx, dword [ebx + 0x54]
mov al, byte [ecx]
cmp al, 0x20
je 0x40f4d5
cmp al, 9
je 0x40f4d5
cmp al, 0xd
je 0x40f4d5
cmp al, 0xa
jne 0x40f4de
inc ecx
mov dword [ebx + 0x54], ecx
cmp ecx, dword [ebx + 0x50]
jne 0x40f4c0
mov eax, dword [ebx + 0x54]
cmp byte [eax], 0x5d
jne 0x40f50c
lea edi, [esp + 0x48]
mov eax, ebx
call fcn.0040e7c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x118], 0xffffffff
call fcn.00403340
mov al, 1
jmp 0x40f85e
xor esi, esi
mov edx, ebx
mov dword [esp + 0x18], esi
call fcn.00410ac0
push esi
mov ecx, eax
call fcn.00404e60
mov ecx, dword [ebx + 0xc]
inc dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
add ecx, eax
test cl, 3
jne 0x40f546
add eax, 4
shr eax, 2
cmp dword [ebx + 8], eax
ja 0x40f546
call fcn.00418cf0
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov edi, esi
shr edi, 2
cmp eax, edi
ja 0x40f55a
sub edi, eax
mov edx, dword [ebx + 4]
cmp dword [edx + edi*4], 0
jne 0x40f57b
push 0x10
call fcn.0046ab72
add esp, 4
test eax, eax
je 0x40f78b
mov ecx, dword [ebx + 4]
mov dword [ecx + edi*4], eax
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
and esi, 3
lea esi, [eax + esi*4]
test esi, esi
je 0x40f591
mov ecx, dword [esp + 0x1c]
mov dword [esi], ecx
inc dword [ebx + 0x10]
mov ecx, ebx
call fcn.0040e320
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x40f5af
dec ecx
mov dword [ebx + 0x10], ecx
jne 0x40f5af
mov dword [ebx + 0xc], 0
test al, al
je 0x40f7b8
lea edi, [esp + 0x38]
mov eax, ebx
call fcn.0040e7c0
mov esi, dword [esp + 0x38]
cmp esi, 0xc
jne 0x40f5e8
jmp 0x40f5d0
test al, al
je 0x40f5e8
lea edi, [esp + 0x38]
mov eax, ebx
call fcn.0040e7c0
mov esi, dword [esp + 0x38]
cmp esi, 0xc
je 0x40f5d0
cmp esi, 0xa
je 0x40f5f6
cmp esi, 4
je 0x40f5f6
mov cl, 1
jmp 0x40f5f8
xor cl, cl
test al, al
je 0x40f7c8
test cl, cl
jne 0x40f7c8
cmp esi, 4
je 0x40f4f1
mov esi, dword [esp + 0x18]
mov edx, ebx
call fcn.00410ac0
test esi, esi
jns 0x40f519
mov dword [esp + 0x54], 0x6dbe5c
mov byte [esp + 0x118], 2
lea ecx, [esp + 0xa4]
mov dword [esp + 0x1c], 1
mov dword [esp + 0xa4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
call fcn.00401d30
lea eax, [esp + 0x34]
lea edx, [esp + 0x58]
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], 0
call fcn.00401cd0
push eax
mov dword [esp + 0x11c], 4
call fcn.0040b3a0
mov byte [esp + 0x11c], 3
mov edi, dword [esp + 0x38]
add esp, 4
mov ebx, eax
test edi, edi
je 0x40f6db
push 0
lea ecx, [esp + 0x48]
call fcn.0045a21e
mov eax, dword [edi + 4]
test eax, eax
je 0x40f6bb
cmp eax, 0xffffffff
jae 0x40f6bb
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x44]
not esi
call fcn.0045a246
and esi, edi
je 0x40f6db
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
push 0x20
mov ecx, ebx
call eax
cmp dword [esp + 0xdc], 0
mov byte [esp + 0xe4], al
jne 0x40f710
mov eax, dword [esp + 0xb0]
or eax, 4
push 0
push eax
lea ecx, [esp + 0xac]
call fcn.00401b40
mov dword [esp + 0x118], 5
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x58]
mov dword [esp + edx + 0x54], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040a4e0
mov dword [esp + 0x58], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 4
lea eax, [esp + 0x54]
push str.in_Json::Value::operator___int_index_:_index_cannot_be_negative
push eax
mov byte [esp + 0x120], 7
call fcn.0040b4e0
add esp, 8
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x58]
call fcn.00408440
mov esi, eax
mov byte [esp + 0x118], 8
call fcn.004029e0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], 0
call fcn.00469472
push 0x6f9470
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], vtable.std::bad_alloc.0
call fcn.0046abf2
push 4
mov esi, ebx
call fcn.00410990
mov bl, al
jmp 0x40f848
push 0x27
mov esi, 0xf
push str.Missing___or___in_array_declaration
lea ecx, [esp + 0xf4]
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
call fcn.00408e00
push 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xf4]
mov byte [esp + 0x120], 9
call fcn.004109e0
cmp dword [esp + 0x100], 0x10
mov bl, al
jb 0x40f831
mov edx, dword [esp + 0xec]
push edx
call fcn.00469cdd
add esp, 4
xor eax, eax
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], eax
mov byte [esp + 0xec], al
lea ecx, [esp + 0x24]
mov dword [esp + 0x118], 0xffffffff
call fcn.00403340
mov al, bl
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00469ae8
mov esp, ebp
pop ebp
ret 4