Function at 0x466700
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f6b93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x44], ebp
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd0], ebx
call fcn.0045ad00
lea ecx, [esp + 8]
mov byte [esp + 0xd0], 1
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x7c]
push 1
push eax
mov byte [esp + 0xd8], 2
call fcn.0040dae0
add esp, 8
push 0x52446c
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0xdc], 3
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd0], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xd8]
lea ecx, [esp + 0x1c]
push edx
call fcn.0045b660
test eax, eax
je 0x4667c8
push str.main
lea ecx, [esp + 0x20]
call fcn.0045b960
test eax, eax
je 0x4667c8
lea ecx, [esp + 0x1c]
call fcn.0045baf0
push str.animals
lea ecx, [esp + 0x20]
call fcn.0045b960
test eax, eax
jne 0x466818
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0xd0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], bl
call fcn.0045b170
lea ecx, [esp + 0xd8]
mov dword [esp + 0xd0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x466ebc
lea ecx, [esp + 0x1c]
call fcn.0045baf0
push str.animal
lea ecx, [esp + 0x20]
call fcn.0045b960
test eax, eax
je 0x466e65
push esi
push edi
lea eax, [esp + 0x88]
push 0x526028
push eax
lea ecx, [esp + 0x2c]
call fcn.00423910
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x466e4d
push 0x80
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0xd8], 6
je 0x4668ed
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xc]
mov byte [esp + 0xd8], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x10]
mov byte [esp + 0xd8], 8
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x14]
mov byte [esp + 0xd8], 9
call sub.MFC42.DLL_CString::CString_4
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_4
push 6
lea ecx, [esi + 0x50]
push 4
push ecx
mov byte [esp + 0xec], 0xa
call fcn.004e9c7e
jmp 0x4668ef
xor esi, esi
mov edx, dword [esp + 0x18]
lea edi, [esi + 0x68]
mov ecx, 6
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x74]
push str.qdprice
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], 5
mov dword [esi + 4], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi], edx
mov dword [esi + 0x20], ebx
call fcn.00423910
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esi + 0x38], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
push str.name
push ecx
lea ecx, [esp + 0x2c]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x44], ebx
call fcn.00423910
lea ecx, [esi + 8]
push eax
mov byte [esp + 0xdc], 0xb
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x50]
push str.product
push edx
lea ecx, [esp + 0x2c]
call fcn.00423910
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0xdc], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x50]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x64]
push 0x52b518
push eax
lea ecx, [esp + 0x2c]
call fcn.00423910
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0xdc], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x64]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
push str.house
push ecx
lea ecx, [esp + 0x2c]
call fcn.00423910
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0xdc], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x6c]
push str.childNum
push edx
lea ecx, [esp + 0x2c]
call fcn.00423910
mov eax, dword [eax]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esi + 0x18], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.0045baf0
push str.nextText
lea ecx, [esp + 0x28]
call fcn.0045b960
test eax, eax
je 0x466b67
lea eax, [esp + 0x54]
push str.value
push eax
lea ecx, [esp + 0x2c]
call fcn.00423910
push 0x525ff0
lea ecx, [esp + 0x90]
push eax
push ecx
mov byte [esp + 0xe4], 0xf
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd8], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
push ebx
push 0x5236a4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, ebx
jl 0x466b63
lea edx, [esi + 0x50]
mov dword [esp + 0x18], edx
cmp dword [esp + 0x14], 6
jae 0x466b63
mov eax, edi
lea ecx, [esp + 0x58]
sub eax, ebp
push eax
push ebp
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
mov ebp, dword [esp + 0x18]
push eax
mov ecx, ebp
mov byte [esp + 0xdc], 0x11
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x58]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
add ebp, 4
mov dword [esp + 0x18], ebp
inc ecx
lea ebp, [edi + 1]
mov dword [esp + 0x14], ecx
push ebp
push 0x5236a4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, ebx
jge 0x466afb
mov ebp, dword [esp + 0x4c]
push str.nextTime
lea ecx, [esp + 0x28]
call fcn.0045b960
test eax, eax
je 0x466c61
lea edx, [esp + 0x68]
push str.value
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call fcn.00423910
push 0x525ff0
push eax
lea eax, [esp + 0x68]
mov byte [esp + 0xe0], 0x12
push eax
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xdc], 0x13
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x60]
mov byte [esp + 0xd8], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
push ebx
push 0x5236a4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, ebx
jl 0x466c5d
lea eax, [esi + 0x68]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], 6
jae 0x466c5d
mov ecx, edi
lea edx, [esp + 0x70]
sub ecx, ebp
push ecx
push ebp
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebp, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x70]
mov dword [ebp], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
add ebp, 4
mov dword [esp + 0x18], ebp
inc ecx
lea ebp, [edi + 1]
mov dword [esp + 0x14], ecx
push ebp
push 0x5236a4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, ebx
jge 0x466bfe
mov ebp, dword [esp + 0x4c]
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x20]
mov dword [esi + 0x1c], eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x24]
push 0x5231b8
push edx
mov byte [esp + 0xe4], 0x14
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x90]
push eax
push 0x40
push ecx
push 0x5307a8
push edx
push str.ANIMALS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x466d37
lea eax, [esp + 0x44]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x9c]
push 0x525f18
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, dword [esi + 0x20]
add esp, 0x14
cmp eax, ebx
jne 0x466d1d
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x20], ecx
cmp dword [esi + 0x34], ebx
jne 0x466d29
mov edx, dword [esp + 0x48]
mov dword [esi + 0x34], edx
cmp dword [esi + 0x3c], ebx
jne 0x466da7
mov eax, dword [esp + 0x44]
mov dword [esi + 0x3c], eax
jmp 0x466da7
push esi
mov ecx, ebp
call fcn.0047ad00
lea eax, [esi + 8]
lea ecx, [esp + 0x80]
push eax
push 0x525f98
push ecx
call sub.MFC42.DLL_operator_3
push 0x525f94
lea edx, [esp + 0x7c]
push eax
push edx
mov byte [esp + 0xe4], 0x15
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
mov edx, dword [ebp]
push eax
push 0xe
mov ecx, ebp
mov byte [esp + 0xe0], 0x16
call dword [edx + 4]
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0xd8], 0x14
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x1c0]
mov edi, dword [ebp + 0x1b8]
cmp eax, ebx
jne 0x466df3
mov eax, dword [ebp + 0x1c8]
push 0xc
lea ecx, [ebp + 0x1c4]
push eax
push ecx
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [ebp + 0x1c8]
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, ebx
lea eax, [eax + edx*4 - 8]
jl 0x466df3
inc ecx
mov edx, dword [ebp + 0x1c0]
mov dword [eax], edx
mov dword [ebp + 0x1c0], eax
sub eax, 0xc
dec ecx
jne 0x466ddf
mov eax, dword [ebp + 0x1c0]
mov ecx, dword [eax]
mov dword [ebp + 0x1c0], ecx
mov dword [eax + 4], edi
mov dword [eax], ebx
mov edi, dword [ebp + 0x1bc]
inc edi
mov dword [ebp + 0x1bc], edi
mov dword [eax + 8], ebx
mov dword [eax + 8], esi
mov ecx, dword [ebp + 0x1b8]
cmp ecx, ebx
je 0x466e27
mov dword [ecx], eax
jmp 0x466e2d
mov dword [ebp + 0x1b4], eax
lea ecx, [esp + 0x24]
mov dword [ebp + 0x1b8], eax
call fcn.0045bba0
lea ecx, [esp + 0x20]
mov byte [esp + 0xd8], 5
call sub.MFC42.DLL_CString::CString
push str.animal
lea ecx, [esp + 0x28]
call fcn.0045b960
test eax, eax
jne 0x466839
pop edi
pop esi
lea ecx, [esp + 0x1c]
call fcn.0045bba0
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0xd0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], bl
call fcn.0045b170
lea ecx, [esp + 0xd8]
mov dword [esp + 0xd0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xc8]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret 4