Function at 0x40e8f0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x42cbad
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43c01c]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor edi, edi
mov dword [esp + 0xbc], edi
mov eax, dword [esp + 0x2c]
and eax, 0xfffffe07
or eax, 7
push 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x54], esi
cmp esi, edi
mov byte [esp + 0xbc], 1
je 0x40e99a
call fcn.0040db10
mov dword [esi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], edi
jmp 0x40e99c
xor esi, esi
mov dword [esp + 0x24], esi
mov esi, ebp
mov byte [esp + 0xbc], 2
call fcn.0040fb50
mov esi, dword [eax]
lea eax, [esp + 0x24]
call fcn.0040c3a0
lea eax, [esp + 0x24]
mov byte [esp + 0xbc], 0
call fcn.0040c300
lea edi, [esp + 0x18]
mov eax, ebp
call fcn.0040e3d0
test al, al
je 0x40ebd4
mov edi, edi
mov ecx, dword [esp + 0x18]
cmp ecx, 0xc
mov al, 1
jne 0x40ea14
jmp 0x40e9f0
test al, al
je 0x40ebd4
lea edi, [esp + 0x18]
mov eax, ebp
call fcn.0040e3d0
mov ecx, dword [esp + 0x18]
cmp ecx, 0xc
je 0x40e9f0
test al, al
je 0x40ebd4
cmp ecx, 2
je 0x40ec5e
cmp ecx, 5
jne 0x40ebd4
push 0x430354
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edi, [esp + 0x98]
call fcn.0040f4a0
test al, al
je 0x40ec88
lea edi, [esp + 0x24]
mov eax, ebp
call fcn.0040e3d0
test al, al
je 0x40ecd0
cmp dword [esp + 0x24], 0xb
jne 0x40ecd0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add ebx, eax
cmp eax, ebx
jbe 0x40ea82
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add ebx, 0xffffffff
add edx, eax
cmp ebx, edx
ja 0x40ea95
cmp ebx, eax
jae 0x40ea9b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov edi, ebx
mov esi, ebx
shr edi, 2
and esi, 3
cmp ebx, eax
jb 0x40eab5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 8]
cmp eax, edi
ja 0x40eabe
sub edi, eax
cmp dword [esp + 0xa8], 0x10
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + edi*4]
mov esi, dword [edx + esi*4]
mov eax, dword [esp + 0x94]
jae 0x40eadf
lea eax, [esp + 0x94]
push eax
push esi
call fcn.0040c9b0
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
add ecx, eax
test cl, 3
jne 0x40eb07
add eax, 4
shr eax, 2
cmp dword [ebp + 8], eax
ja 0x40eb07
mov ebx, ebp
call fcn.0040feb0
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, ebx
shr edi, 2
cmp eax, edi
ja 0x40eb1b
sub edi, eax
mov edx, dword [ebp + 4]
cmp dword [edx + edi*4], 0
jne 0x40eb34
push 0x10
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 4]
add esp, 4
mov dword [ecx + edi*4], eax
mov edx, dword [ebp + 4]
mov eax, dword [edx + edi*4]
and ebx, 3
lea ebx, [eax + ebx*4]
test ebx, ebx
je 0x40eb46
mov dword [ebx], esi
add dword [ebp + 0x10], 1
mov ecx, ebp
call fcn.0040e1b0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40eb67
add ecx, 0xffffffff
mov dword [ebp + 0x10], ecx
jne 0x40eb67
mov dword [ebp + 0xc], 0
test al, al
je 0x40ec88
lea edi, [esp + 0x48]
mov eax, ebp
call fcn.0040e3d0
test al, al
je 0x40ec95
mov ecx, dword [esp + 0x48]
cmp ecx, 2
je 0x40eb99
cmp ecx, 0xa
je 0x40eb99
cmp ecx, 0xc
jne 0x40ec95
cmp ecx, 0xc
mov al, 1
jne 0x40ebb8
test al, al
je 0x40ebb8
lea edi, [esp + 0x48]
mov eax, ebp
call fcn.0040e3d0
mov ecx, dword [esp + 0x48]
cmp ecx, 0xc
je 0x40eba0
cmp ecx, 2
je 0x40ec6c
lea edi, [esp + 0x18]
mov eax, ebp
call fcn.0040e3d0
test al, al
jne 0x40e9e0
push str.Missing__or_object_member_name
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x60]
mov ecx, ebp
mov byte [esp + 0xc4], 5
call fcn.0040f9e0
push 2
mov esi, ebp
call fcn.0040fae0
lea ecx, [esp + 0x58]
mov bl, al
mov byte [esp + 0xbc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x90]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00422218
add esp, 0xac
ret 4
cmp dword [esp + 0xa4], 0
jne 0x40ebd4
lea ecx, [esp + 0x90]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x40ec34
push 2
mov esi, ebp
call fcn.0040fae0
mov bl, al
jmp 0x40ec1a
push str.Missing___or__in_object_declaration
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x2c]
mov ecx, ebp
mov byte [esp + 0xc4], 4
call fcn.0040f9e0
push 2
mov esi, ebp
call fcn.0040fae0
lea ecx, [esp + 0x24]
jmp 0x40ec0a
push str.Missing_:_after_object_member_name
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x7c]
mov ecx, ebp
mov byte [esp + 0xc4], 3
call fcn.0040f9e0
push 2
mov esi, ebp
call fcn.0040fae0
lea ecx, [esp + 0x74]
jmp 0x40ec0a