Function at 0x434480
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b5168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0
test eax, eax
je 0x4344c5
lea eax, [esp + 0xc]
push str.HotItem_M
push eax
jmp 0x4344cf
lea ecx, [esp + 0xc]
push str.HotItem_F
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
add esp, 8
push edx
push 0
push str.Count
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
jle 0x43480a
push ebx
lea ecx, [edi*4]
push esi
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x28], esi
test edi, edi
jle 0x43455b
mov ecx, esi
mov dword [ecx], eax
inc eax
add ecx, 4
cmp eax, edi
jl 0x43451c
test edi, edi
jle 0x43455b
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
mov dword [esp + 0x48], edi
call ebp
cdq
idiv edi
mov ebx, edx
call ebp
cdq
idiv edi
mov eax, dword [esi + ebx*4]
mov ecx, dword [esi + edx*4]
mov dword [esi + ebx*4], ecx
mov dword [esi + edx*4], eax
mov eax, dword [esp + 0x48]
dec eax
mov dword [esp + 0x48], eax
jne 0x434534
mov ebp, dword [esp + 0x2c]
lea edx, [ebp + 0x21bb0]
lea eax, [ebp + 0x2c498]
mov dword [esp + 0x20], 0
mov ebx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
add ebp, 0x2be54
jmp 0x434585
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x20], edi
jge 0x4347fb
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebx]
lea edx, [esp + 0x48]
push ecx
push str.ID_d
push edx
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push edi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp], eax
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x4c]
push str.Name_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
add esp, 0xc
lea esi, [ebp - 0x18c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x40
push esi
push 0x4d8eb4
push ecx
push edx
call edi
mov eax, dword [ebx]
lea ecx, [esp + 0x48]
push eax
push str.Price_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [ebp - 0x14c]
push edx
push 8
push eax
mov eax, dword [esp + 0x54]
push 0x4d8eb4
push eax
push ecx
call edi
mov edx, dword [ebx]
lea eax, [esp + 0x48]
push edx
push str.Intro_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
add esp, 0xc
lea eax, [ebp - 0x144]
push ecx
push 0x40
push eax
mov eax, dword [esp + 0x20]
push 0x4d8eb4
push edx
push eax
call edi
cmp dword [ebp], 0
jle 0x4347b5
push 0x4d8eb4
lea ecx, [ebp - 0x104]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [0x50acfc]
add esp, 0xc
test ecx, ecx
je 0x4346aa
mov eax, dword [0x51320c]
test eax, eax
je 0x4346aa
mov eax, dword [ebp]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp]
mov edi, esi
xor eax, eax
mov dword [edx], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
cmp ecx, 8
jg 0x4346d3
mov ecx, dword [esp + 0x1c]
call fcn.0046a830
jmp 0x434769
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
mov byte [esp + 0x40], 2
xor esi, esi
cmp byte [esi + eax], 0
jge 0x4346ee
inc esi
inc esi
cmp esi, 4
jl 0x4346e7
mov eax, esi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc esi
call sub.MFC42.DLL_CString::SetAt
mov eax, esi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc esi
call sub.MFC42.DLL_CString::SetAt
mov eax, esi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc esi
call sub.MFC42.DLL_CString::SetAt
lea eax, [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 2
call fcn.004ab42e
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0046a830
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.004ab42e
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x144]
lea edx, [esp + 0x1c]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0x4d1200
push edx
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 1
push eax
call fcn.0046ac80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.004ab42e
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.004ab42e
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
inc eax
add ebx, 4
add edi, 4
add ebp, 0x190
add edx, 0xe0
cmp eax, 5
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edx
jl 0x434581
push esi
call sub.MFC42.DLL_operatordelete
mov ebp, dword [esp + 0x30]
add esp, 4
pop esi
pop ebx
mov ecx, ebp
call fcn.00430f00
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ab42e
mov ecx, dword [esp + 0x30]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 8