Function at 0x4109c0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5681cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebp
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
xor ebp, ebp
cmp eax, ebp
jne 0x410a0a
xor eax, eax
jmp 0x410db4
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0xdc]
cmp eax, 4
mov dword [ebx + 4], ebp
jne 0x410a57
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x410a3b
mov ecx, dword [esp + 0x40]
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 3
inc ecx
mov dword [ebx + 4], ecx
jmp 0x410abf
cmp eax, 0xa
jne 0x410a49
mov dword [ebx + 4], 2
jmp 0x410abf
cmp eax, 0x5a
jne 0x410abf
mov dword [ebx + 4], 3
jmp 0x410abf
cmp eax, 5
jne 0x410a89
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x410a6d
mov dword [ebx + 4], 5
jmp 0x410abf
cmp eax, 1
jne 0x410a7b
mov dword [ebx + 4], 6
jmp 0x410abf
cmp eax, 2
jne 0x410abf
mov dword [ebx + 4], 7
jmp 0x410abf
cmp eax, 6
jne 0x410abf
mov eax, dword [esp + 0x38]
cmp eax, 1
jne 0x410aaa
cmp byte [esp + 0xca], 1
jne 0x410abf
mov dword [ebx + 4], 9
jmp 0x410abf
cmp eax, ebp
jne 0x410abf
cmp byte [esp + 0xca], 1
jne 0x410abf
mov dword [ebx + 4], 8
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [ebx + 8]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov al, byte [esp + 0x23]
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x5e5830
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5e5830
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
mov edi, 0x5cf3b0
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0xd8], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5cf3b0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.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__::append_char_const___unsigned_int_]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00410dd0
add esp, 8
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0xd8], 1
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x5cf3ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5cf3ac
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.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__::append_char_const___unsigned_int_]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00410dd0
add esp, 8
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0xd8], 2
mov ecx, dword [edx]
push ecx
push ebp
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x5cf3a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5cf3a8
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.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__::append_char_const___unsigned_int_]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00410dd0
add esp, 8
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0xd8], 3
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.PBmM
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x410c64
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebp
jbe 0x410cac
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x410cac
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, str.PBmM
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00410dd0
add esp, 8
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [esi + 8]
mov byte [esp + 0xd8], 4
mov eax, dword [eax]
mov ebp, eax
cmp ecx, ebp
jae 0x410cda
mov ebp, ecx
sub eax, dword [esp + 0x18]
cmp eax, ebp
ja 0x410ce8
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test ebp, ebp
jbe 0x410d3e
mov ecx, dword [esp + 0x18]
push 0
lea ebx, [ecx + ebp]
lea ecx, [esp + 0x14]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x410d37
mov esi, dword [esi + 4]
test esi, esi
jne 0x410d11
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, ebp
push ebx
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ebx, dword [esp + 0xe0]
mov eax, dword [esp + 0x28]
mov byte [esp + 0xd8], 0
test eax, eax
pop esi
je 0x410d6c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x410d63
cmp al, 0xff
je 0x410d63
dec al
mov byte [ecx], al
jmp 0x410d6c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [ebx + 0x18]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x10]
mov dword [ebx], 1
test ecx, ecx
pop ebx
je 0x410daf
mov al, byte [ecx - 1]
test al, al
je 0x410da5
cmp al, 0xff
je 0x410da5
dec al
mov byte [ecx - 1], al
jmp 0x410daf
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xc8]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0xcc
ret 4