Function at 0x47da00
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4f8c45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x48]
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x10c], ebx
call fcn.0044e9a0
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x10c], 1
call fcn.0044e9a0
lea ecx, [esp + 0x68]
mov byte [esp + 0x108], 2
call fcn.0044a000
push ecx
mov ecx, dword [ebp + 0x88]
mov eax, esp
mov dword [esp + 0x18], esp
push ebx
push 0x1b
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0x11c], 3
call fcn.00475130
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
call fcn.00466f10
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 4
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov al, byte [esp + 0x1b]
mov byte [esp + 0x24], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
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_]
lea ecx, [esp + 0x44]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0x114], 5
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x108], 4
mov esi, eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x47db1f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47db16
cmp al, 0xff
je 0x47db16
dec al
mov byte [ecx], al
jmp 0x47db1f
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp esi, ebx
je 0x47db3c
lea ecx, [esp + 0x44]
call fcn.0044f140
cmp eax, 6
je 0x47db45
mov dword [esp + 0x1c], ebx
jmp 0x47dfb3
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x47db50
xor ecx, ecx
jmp 0x47db58
mov ecx, dword [ebp + 0x10]
sub ecx, eax
sar ecx, 2
xor eax, eax
cmp ecx, ebx
jle 0x47db71
mov edx, dword [ebp + 0xc]
inc eax
cmp eax, ecx
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x10], edx
mov dword [edx + 4], ebx
jl 0x47db5e
lea ecx, [esp + 0x44]
call fcn.0044fc80
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
jle 0x47dd81
jmp 0x47db90
xor ebx, ebx
push edi
lea ecx, [esp + 0x48]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x38]
call fcn.0044f040
lea ecx, [esp + 0x34]
call fcn.0044f140
cmp eax, 7
jne 0x47dd81
push str.itemId
lea ecx, [esp + 0x38]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov esi, eax
add esp, 4
test esi, esi
je 0x47dd6e
push esi
mov ecx, ebp
call fcn.0047e270
test eax, eax
mov dword [esp + 0x10], eax
jne 0x47dc59
push 0x58
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x16
xor eax, eax
mov dword [esp + 0x14], edi
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push str.itemName
lea ecx, [esp + 0x38]
mov dword [eax], esi
call fcn.0044fea0
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.0040c8b0
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push 0x1f
add edx, 0x2c
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x14
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
lea ecx, [ebp + 8]
call fcn.0047f0e0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
push 0x525f70
lea ecx, [esp + 0x38]
mov dword [eax + 4], 1
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x34]
push str.FBPrice
mov dword [edx + 0x10], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
push str.YFBPrice
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.level
mov dword [edx + 0x1c], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
push str.price
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.itemType
mov dword [edx + 0x20], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0xc], eax
push str.itemValidTime
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.skin
mov dword [edx + 0x24], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x4c], eax
push 0x526918
lea ecx, [esp + 0x38]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx + 0x50], eax
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x47db8e
xor ebx, ebx
push ecx
mov ecx, dword [ebp + 0x88]
mov eax, esp
mov dword [esp + 0x18], esp
push ebx
push 0x1c
push ecx
push eax
mov ecx, ebp
call fcn.00475130
lea edx, [esp + 0x18]
mov ecx, ebp
push edx
call fcn.00466f10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 6
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x108], 4
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [esp + 0x1b]
mov byte [esp + 0x24], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
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 0x47de28
mov edi, dword [esp + 0x28]
mov ecx, ebx
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 + 0x28]
mov dword [esp + 0x2c], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x44]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x74]
mov byte [esp + 0x114], 7
call fcn.0044a090
and eax, 0xff
xor ebx, ebx
mov esi, eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x108], 4
je 0x47de7b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47de72
cmp al, 0xff
je 0x47de72
dec al
mov byte [ecx], al
jmp 0x47de7b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp esi, ebx
je 0x47deab
lea ecx, [esp + 0x44]
call fcn.0044f140
cmp eax, 6
jne 0x47deab
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 1
cmp eax, ebx
jne 0x47deb4
xor ecx, ecx
jmp 0x47debc
mov dword [esp + 0x1c], ebx
jmp 0x47dfb1
mov ecx, dword [ebp + 0x10]
sub ecx, eax
sar ecx, 2
xor eax, eax
cmp ecx, ebx
jle 0x47ded5
mov edx, dword [ebp + 0xc]
inc eax
cmp eax, ecx
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x10], edx
mov dword [edx + 8], ebx
jl 0x47dec2
lea ecx, [esp + 0x44]
call fcn.0044fc80
mov edi, eax
xor esi, esi
cmp edi, ebx
jle 0x47dfb1
push esi
lea ecx, [esp + 0x48]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x5c]
call fcn.0044f040
push str.itemId
lea ecx, [esp + 0x5c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
test eax, eax
je 0x47dfa8
push eax
mov ecx, ebp
call fcn.0047e270
test eax, eax
mov dword [esp + 0x10], eax
je 0x47dfa8
push str.itemValidTime
lea ecx, [esp + 0x5c]
mov dword [eax + 8], 1
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x28], eax
push str.yellowtype
lea ecx, [esp + 0x5c]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x58]
push str.itemName
mov dword [edx + 0x54], eax
call fcn.0044fea0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040c8b0
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push 0x1f
add ecx, 0x2c
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x14
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jl 0x47deea
xor ebx, ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x108], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xf0]
mov byte [esp + 0x108], 8
cmp eax, ebx
je 0x47dff4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47dfeb
cmp al, 0xff
je 0x47dfeb
dec al
mov byte [ecx], al
jmp 0x47dff4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xf0], ebx
cmp eax, ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
je 0x47e031
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47e028
cmp al, 0xff
je 0x47e028
dec al
mov byte [ecx], al
jmp 0x47e031
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xcc], ebx
cmp eax, ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
je 0x47e14f
mov ecx, dword [esp + 0xa4]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xa8], ecx
lea ecx, [eax + 0xc]
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 + 0xc4]
dec eax
mov dword [esp + 0xc4], eax
je 0x47e09a
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
cmp edx, eax
jne 0x47e142
mov eax, dword [esp + 0xa8]
mov ecx, eax
add eax, 4
mov dword [esp + 0xa8], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xc8]
add esp, 4
cmp eax, ebx
jne 0x47e117
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xbc]
xor edx, edx
xor esi, esi
push eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], esi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
jmp 0x47e142
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xa0], edx
cmp dword [esp + 0xc4], ebx
jne 0x47e055
cmp dword [esp + 0x94], ebx
je 0x47e216
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 0x47e182
cmp ecx, dword [esp + 0x70]
jne 0x47e209
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, ebx
jne 0x47e1ed
xor edx, edx
xor eax, eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x8c]
xor ecx, ecx
xor esi, esi
push edx
mov dword [esp + 0x70], eax
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
xor ebx, ebx
jmp 0x47e209
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x70], edx
cmp dword [esp + 0x94], ebx
jne 0x47e15c
lea ecx, [esp + 0x58]
mov byte [esp + 0x108], 1
call fcn.0044eec0
lea ecx, [esp + 0x34]
mov byte [esp + 0x108], 0
call fcn.0044eec0
lea ecx, [esp + 0x44]
mov dword [esp + 0x108], 0xffffffff
call fcn.0044eec0
mov ecx, dword [esp + 0x100]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xfc
ret