Function at 0x425840
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4f1252
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
push edi
lea ecx, [esp + 0x44]
call fcn.0044e9a0
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x108], edi
call fcn.0044e9a0
push edi
lea ecx, [esp + 0xf0]
mov byte [esp + 0x108], 1
call fcn.0044e9a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x104], 2
call fcn.0044a000
push ecx
mov ecx, dword [ebp + 0x130]
mov eax, esp
mov dword [esp + 0x18], esp
push edi
push 0x21
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0x118], 3
call fcn.00418720
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.00410730
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x108], 4
call sub.MFC42.DLL_CString::GetBuffer
mov esi, eax
mov al, byte [esp + 0x1b]
mov byte [esp + 0x20], al
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x24]
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 0x425937
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
push ebx
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 + 0x24]
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_]
lea eax, [esp + 0x40]
push 1
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x110], 5
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x104], 4
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x425988
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42597f
cmp al, 0xff
je 0x42597f
dec al
mov byte [ecx], al
jmp 0x425988
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
je 0x4259a5
lea ecx, [esp + 0x40]
call fcn.0044f140
cmp eax, 6
je 0x4259ac
xor ebx, ebx
jmp 0x425d84
lea ecx, [esp + 0x40]
call fcn.0044fc80
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], edi
jle 0x425b70
push ebx
lea ecx, [esp + 0x44]
call fcn.0044fd30
push eax
lea ecx, [esp + 0x34]
call fcn.0044f040
lea ecx, [esp + 0x30]
call fcn.0044f140
cmp eax, 7
jne 0x425b70
push str.itemId
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov esi, eax
add esp, 4
test esi, esi
je 0x425b67
push esi
mov ecx, ebp
call fcn.004257f0
test eax, eax
mov dword [esp + 0x10], eax
jne 0x425a8e
push 0x4c
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x13
xor eax, eax
mov dword [esp + 0x14], edi
add esp, 4
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10]
push str.itemName
lea ecx, [esp + 0x34]
mov dword [edx], esi
call fcn.0044fea0
push eax
lea eax, [esp + 0x54]
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 + 0x50]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x20]
lea edx, [esp + 0x10]
push edx
push 1
lea ecx, [ebp + 0x18]
push eax
call fcn.0047f0e0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0x525f70
lea ecx, [esp + 0x34]
mov dword [eax + 4], 1
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x10], eax
push str.FBPrice
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x30]
push str.YFBPrice
mov dword [edx + 0x18], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x1c], eax
push str.level
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x30]
push str.price
mov dword [edx + 0x14], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x20], eax
push str.itemType
lea ecx, [esp + 0x34]
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x30]
push str.itemValidTime
mov dword [edx + 0xc], eax
call fcn.0044fea0
push eax
call fcn.0040c7d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x24], eax
inc ebx
cmp ebx, edi
jl 0x4259c5
mov eax, dword [ebp + 0x130]
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
push 0
push 0x22
push eax
push edx
mov ecx, ebp
call fcn.00418720
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00410730
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x108], 6
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x104], 4
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
mov dl, byte [esp + 0x1b]
mov esi, eax
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x24]
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 0x425c19
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov byte [ecx + ebx], 0
lea edx, [esp + 0x40]
push 1
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x110], 7
call fcn.0044a090
and eax, 0xff
mov byte [esp + 0x104], 4
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x425c6a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x425c61
cmp al, 0xff
je 0x425c61
dec al
mov byte [ecx], al
jmp 0x425c6a
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
je 0x4259a5
lea ecx, [esp + 0x40]
call fcn.0044f140
cmp eax, 7
jne 0x4259a5
push str.items
lea ecx, [esp + 0x44]
mov ebx, 1
call fcn.0044fea0
push eax
lea ecx, [esp + 0x34]
call fcn.0044f040
lea ecx, [esp + 0x30]
call fcn.0044f140
cmp eax, 6
jne 0x425d84
lea ecx, [esp + 0x30]
call fcn.0044fc80
mov edi, eax
xor esi, esi
test edi, edi
jle 0x425d84
push esi
lea ecx, [esp + 0x34]
call fcn.0044fd30
push eax
lea ecx, [esp + 0xf0]
call fcn.0044f040
push str.itemId
lea ecx, [esp + 0xf0]
call fcn.0044fea0
push eax
call fcn.0040c7d0
add esp, 4
test eax, eax
je 0x425d7b
push eax
mov ecx, ebp
call fcn.004257f0
test eax, eax
mov dword [esp + 0x10], eax
je 0x425d7b
push str.validTime
lea ecx, [esp + 0xf0]
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.itemName
lea ecx, [esp + 0xf0]
call fcn.0044fea0
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0040c8b0
mov eax, dword [eax]
push 0x1f
push eax
mov eax, dword [esp + 0x20]
add eax, 0x2c
push eax
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 0x425cd3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xdc]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x104], 8
je 0x425dc7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x425dbe
cmp al, 0xff
je 0x425dbe
dec al
mov byte [ecx], al
jmp 0x425dc7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xb8]
mov dword [esp + 0xdc], esi
cmp eax, esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], esi
je 0x425e04
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x425dfb
cmp al, 0xff
je 0x425dfb
dec al
mov byte [ecx], al
jmp 0x425e04
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb8], esi
cmp eax, esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
je 0x425f22
mov ecx, dword [esp + 0x90]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0x94], 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 + 0xb0]
dec eax
mov dword [esp + 0xb0], eax
je 0x425e6d
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
cmp ecx, eax
jne 0x425f11
mov eax, dword [esp + 0x94]
mov ecx, eax
add eax, 4
mov dword [esp + 0x94], eax
mov ecx, dword [ecx]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xb4]
add esp, 4
cmp eax, esi
jne 0x425ee6
xor edx, edx
xor eax, eax
mov dword [esp + 0x90], edx
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0xa8]
xor ecx, ecx
push edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa8], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x425f11
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x8c], edx
mov eax, dword [esp + 0xb0]
xor esi, esi
cmp eax, esi
jne 0x425e28
cmp dword [esp + 0x80], esi
je 0x425fda
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x80]
add ecx, 4
dec eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x80], eax
je 0x425f55
mov eax, ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jne 0x425fc9
mov ecx, dword [esp + 0x64]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x64], ecx
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x84]
add esp, 4
cmp eax, esi
jne 0x425fad
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x78]
xor edx, edx
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x425fc9
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x80]
xor esi, esi
cmp eax, esi
jne 0x425f2f
lea ecx, [esp + 0xec]
mov byte [esp + 0x104], 1
call fcn.0044eec0
lea ecx, [esp + 0x30]
mov byte [esp + 0x104], 0
call fcn.0044eec0
lea ecx, [esp + 0x40]
mov dword [esp + 0x104], 0xffffffff
call fcn.0044eec0
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xf8
ret