Function at 0x432f50
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b5c98
push eax
mov eax, dword [0x4dc2bc]
mov dword fs:[0], esp
sub esp, 0x13c
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x433478
mov eax, dword [ebp + 0x2bcc0]
test eax, eax
jne 0x433478
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push 0x104
push eax
push 0
mov dword [0x4dc2bc], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x158], 0
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 0
call fcn.004ac05e
lea eax, [esp + 0x28]
push str.HotItem.ini
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov edx, dword [esp + 0x14]
mov byte [esp + 0x154], 2
push edx
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.ItemCount
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esp + 0x168]
mov ecx, ebp
push edi
call fcn.004334b0
mov ecx, eax
call fcn.004334a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push str.Common
call ebx
mov esi, eax
test esi, esi
mov dword [esp + 0x44], esi
jle 0x43344c
mov eax, dword [esp + 0x14]
push eax
push 0
push str.RandType
push str.Common
call ebx
cmp eax, 0xffffffff
jne 0x43344c
lea ecx, [esi*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], ebx
test esi, esi
jle 0x4330ff
mov ecx, ebx
mov dword [ecx], eax
inc eax
add ecx, 4
cmp eax, esi
jl 0x4330b4
test esi, esi
jle 0x4330ff
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCRT.dll_rand]
cdq
idiv esi
mov dword [esp + 0x1c], edx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
idiv esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + eax*4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + edx*4]
mov dword [ebx + eax*4], ecx
mov eax, dword [esp + 0x1c]
mov dword [ebx + edx*4], eax
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x4330c6
lea ecx, [ebp + 0x21bb0]
lea edx, [ebp + 0x2c498]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
lea esi, [ebp + 0x2be54]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jge 0x433443
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
mov byte [esp + 0x154], 3
mov edx, dword [ecx]
push edx
push 0x4ce98c
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004334a0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.ItemId
call sub.MFC42.DLL_CString::CString_2
push edi
mov ecx, ebp
call fcn.004334b0
mov ecx, eax
call fcn.004334a0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esp + 0x14]
lea ebx, [esi - 0x18c]
push edx
push 0x40
push ebx
push 0x4daff4
lea ecx, [esp + 0x28]
mov dword [esi], eax
call fcn.004334a0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str.ItemName
call sub.MFC42.DLL_CString::CString_2
push edi
mov ecx, ebp
call fcn.004334b0
mov ecx, eax
call fcn.004334a0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
lea eax, [esi - 0x144]
push 0x40
push eax
push 0x4daff4
call fcn.004334a0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str.ItemIntro
call sub.MFC42.DLL_CString::CString_2
push edi
mov ecx, ebp
call fcn.004334b0
mov ecx, eax
call fcn.004334a0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x14]
lea eax, [esi - 0x14c]
push ecx
push 8
push eax
push 0x4daff4
lea ecx, [esp + 0x28]
call fcn.004334a0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push str.ItemPrice
call sub.MFC42.DLL_CString::CString_2
push edi
mov ecx, ebp
call fcn.004334b0
mov ecx, eax
call fcn.004334a0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [esi], 0
jle 0x4333ef
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push edx
push str.datadlgpethotitem_
push str._s_d.mif
push eax
mov byte [esp + 0x164], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi]
add esp, 0x10
lea edx, [esi - 0x104]
push ecx
push str.datadlgpethotitem_
push str._s_d.mif
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [esp + 0x34]
mov eax, dword [esi]
mov edi, ebx
add esp, 0x14
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jg 0x4332e3
mov ecx, dword [esp + 0x28]
call fcn.0046ae10
jmp 0x433385
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
mov byte [esp + 0x154], 5
xor edi, edi
cmp byte [edi + eax], 0
jge 0x433301
inc edi
inc edi
cmp edi, 4
jl 0x4332fa
mov eax, edi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc edi
call sub.MFC42.DLL_CString::SetAt
mov eax, edi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc edi
call sub.MFC42.DLL_CString::SetAt
mov eax, edi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc edi
call sub.MFC42.DLL_CString::SetAt
lea edx, [esp + 0x40]
push edi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 6
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x154], 5
call fcn.004ac05e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
call fcn.0046ae10
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 4
call fcn.004ac05e
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esi - 0x144]
lea ecx, [esp + 0x38]
push eax
lea eax, [esi - 0x14c]
push eax
push 0x4d324c
push ecx
mov byte [esp + 0x164], 7
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
add esp, 0x10
push 1
push edx
call fcn.0046b260
lea ecx, [esp + 0x38]
mov byte [esp + 0x154], 4
call fcn.004ac05e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 3
call fcn.004ac05e
mov edi, dword [esp + 0x15c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 2
call fcn.004ac05e
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov ecx, 4
add edx, ecx
inc eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
add ebx, ecx
add esi, 0x190
add edx, 0xe0
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x2c]
cmp eax, 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], edx
jl 0x433125
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, ebp
call fcn.00431130
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 0
call fcn.004ac05e
lea ecx, [esp + 0x28]
mov dword [esp + 0x154], 0xffffffff
call fcn.004ac05e
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x148
ret 4