Function at 0x4a6aa0
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4fcc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
mov ebx, ecx
push esi
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x40], ebx
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x114], 0
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x114], 1
call fcn.0044e9a0
lea ecx, [esp + 0x60]
mov byte [esp + 0x110], 2
call fcn.0044a000
lea ecx, [esp + 0xc]
mov byte [esp + 0x110], 3
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x118]
push str.tool_db
mov ecx, esi
mov byte [esp + 0x114], 4
call fcn.0045b960
test eax, eax
jne 0x4a6c09
lea ecx, [esp + 0xc]
mov byte [esp + 0x110], 3
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esp + 0xe8]
mov byte [esp + 0x114], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x114], 6
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 eax, dword [esp + 0xbc]
mov byte [esp + 0x110], 5
test eax, eax
je 0x4a6ba5
lea ecx, [esp + 0x90]
call fcn.0042c1b0
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x4a6b8e
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x110], 2
test eax, eax
je 0x4a6bcc
lea ecx, [esp + 0x60]
call fcn.0042c120
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x4a6bb8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x110], 1
call fcn.0044eec0
lea ecx, [esp + 0x40]
mov byte [esp + 0x110], 0
call fcn.0044eec0
lea ecx, [esp + 0x50]
mov dword [esp + 0x110], 0xffffffff
call fcn.0044eec0
xor eax, eax
jmp 0x4a7118
push ebp
lea eax, [esp + 0x10]
push edi
push eax
mov ecx, esi
call fcn.0045cd80
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x1b]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov esi, eax
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, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
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 0x4a6c77
mov edi, dword [esp + 0x20]
mov ecx, ebp
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]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x58]
push 1
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0x124], 8
call fcn.0044a090
and eax, 0xff
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x11c], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
xor ebp, ebp
cmp esi, ebp
je 0x4a6cce
lea ecx, [esp + 0x58]
call fcn.0044f140
cmp eax, 7
je 0x4a6cd7
mov dword [esp + 0x2c], ebp
jmp 0x4a6eeb
push str.tool_db
lea ecx, [esp + 0x5c]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x4c]
call fcn.0044f040
lea ecx, [esp + 0x48]
call fcn.0044f140
xor ecx, ecx
cmp eax, 6
sete cl
mov eax, ecx
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x4a6eeb
mov eax, dword [ebx + 0x54]
lea edi, [ebx + 0x50]
cmp eax, ebp
je 0x4a6d20
mov ebp, dword [edi + 8]
sub ebp, eax
sar ebp, 2
xor esi, esi
test ebp, ebp
jle 0x4a6d3a
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + esi*4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
inc esi
cmp esi, ebp
jl 0x4a6d26
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
cmp ecx, ecx
mov eax, ecx
je 0x4a6d54
mov esi, dword [eax]
add eax, 4
mov dword [edx], esi
add edx, 4
cmp eax, ecx
jne 0x4a6d46
mov eax, dword [edi + 8]
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], eax
mov dword [edi + 8], edx
call fcn.0044fc80
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4a6ee9
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
push esi
lea ecx, [esp + 0x4c]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x38]
call fcn.0044f040
push 0x34
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x14], eax
mov dword [eax + 0x30], 0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x2c], 0x1869f
push str.canBuy
lea ecx, [esp + 0x38]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x34]
push str.consume
mov dword [edx], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x20], eax
push 0x526028
lea ecx, [esp + 0x38]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x34]
push str.price
mov dword [edx + 0x1c], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x24], eax
push 0x525f58
lea ecx, [esp + 0x38]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x34]
push str.vipPrice
mov dword [edx + 0x18], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x28], eax
push str.name
lea ecx, [esp + 0x38]
call fcn.0044fea0
lea edx, [esp + 0x30]
push eax
push edx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], 9
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
xor eax, eax
add ecx, 4
mov dword [ecx], eax
mov dword [ecx + 4], eax
push 0x13
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, 4
push edx
push eax
call ebx
mov ecx, dword [esp + 0x50]
add esp, 0xc
lea edx, [esp + 0x10]
mov eax, dword [ecx + 0x58]
push edx
push 1
push eax
mov ecx, edi
call fcn.0047f0e0
inc esi
cmp esi, ebp
jl 0x4a6d79
xor ebp, ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x118], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xf0]
mov byte [esp + 0x118], 0xa
cmp eax, ebp
je 0x4a6f2c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4a6f23
cmp al, 0xff
je 0x4a6f23
dec al
mov byte [ecx], al
jmp 0x4a6f2c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xf0], ebp
cmp ecx, ebp
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf8], ebp
je 0x4a6f67
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4a6f5e
cmp al, 0xff
je 0x4a6f5e
dec al
mov byte [ecx], al
jmp 0x4a6f67
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xcc], ebp
cmp eax, ebp
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], ebp
je 0x4a6fd8
mov eax, dword [esp + 0xa4]
push ebp
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xa8], eax
call fcn.0042c6f0
mov eax, dword [esp + 0xc4]
dec eax
mov dword [esp + 0xc4], eax
je 0x4a6fc3
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
cmp eax, ecx
jne 0x4a6fcf
lea ecx, [esp + 0x98]
call fcn.0042c550
cmp dword [esp + 0xc4], ebp
jne 0x4a6f87
mov eax, dword [esp + 0x94]
mov byte [esp + 0x118], 2
cmp eax, ebp
je 0x4a70dc
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x94]
add ecx, 4
dec eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x94], eax
je 0x4a7015
cmp ecx, dword [esp + 0x70]
jne 0x4a70cf
mov ecx, dword [esp + 0x78]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x78], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x98]
add esp, 4
cmp eax, ebp
jne 0x4a708f
lea ecx, [esp + 0x1c]
call fcn.004051c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x74], edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x6c], eax
push edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4a70cf
mov eax, dword [esp + 0x78]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x108]
call fcn.0042c610
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x108]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
cmp dword [esp + 0x94], ebp
jne 0x4a6fef
lea ecx, [esp + 0x34]
mov byte [esp + 0x118], 1
call fcn.0044eec0
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 0
call fcn.0044eec0
lea ecx, [esp + 0x58]
mov dword [esp + 0x118], 0xffffffff
call fcn.0044eec0
mov eax, dword [esp + 0x2c]
pop edi
pop ebp
mov ecx, dword [esp + 0x108]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10c
ret 4