Function at 0x42ebb0
Capabilities:
Delete file
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4f20b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
push 1
mov ebp, ecx
push eax
call fcn.0040dae0
add esp, 8
push 0x524458
lea ecx, [esp + 0x30]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x58], esi
call sub.MFC42.DLL_operator_4
lea edi, [ebp + 0x9c4]
lea edx, [esp + 0x28]
push edi
push eax
push edx
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_operator_2
push str.UserData.ini
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x54], 2
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov ecx, ebp
mov byte [esp + 0x4c], 7
mov dword [esp + 0x20], esi
call fcn.00436410
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0x5a
push str.Version
push str.SYSTEM
call esi
mov ebx, eax
cmp ebx, 0x3e7
mov dword [esp + 0x24], ebx
jbe 0x42ec94
mov ebx, 0x5a
mov dword [esp + 0x24], ebx
jmp 0x42eca0
cmp ebx, 0x19f
jae 0x42ed6d
push 0x19f
lea edx, [esp + 0x20]
push 0x5231b8
push edx
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push eax
push ecx
push str.Version
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp ebx, 0x191
jae 0x42ed85
lea edx, [esp + 0x40]
push 1
push edx
call fcn.0040dae0
add esp, 8
push 0x524458
push eax
lea eax, [esp + 0x44]
mov bl, 8
push eax
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_operator_4
push edi
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x58], 9
call sub.MFC42.DLL_operator_2
push str.FarmStatus.mdb
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0x58], 0xa
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::CString
jmp 0x42ed85
jbe 0x42ed85
mov eax, dword [ebp + 0x74]
push 0x30
push 0x52347c
push 0x527128
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x2800
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x18]
mov ebx, eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0xa00
xor eax, eax
mov edi, ebx
mov byte [esp + 0x4c], 0xb
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push ecx
push 0x2800
push ebx
push 0x5307a8
push str.AllConfig
push str.CONFIG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push ebx
call sub.MFC42.DLL_CString::CString_2
call fcn.0040bfd0
mov edi, eax
mov eax, dword [0x536324]
add esp, 8
test eax, eax
je 0x42ee0d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [0x536324], 0
mov eax, dword [esp + 0x14]
cmp edi, 0x328
jne 0x42ee37
mov ecx, 0xca
mov esi, eax
mov edi, 0x5362b8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x536324], 0
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, 0xa00
xor eax, eax
mov edi, ebx
mov dword [esp + 0x18], 0
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
push 0x2800
push ebx
push 0x5307a8
push str.Statistics
push str.EXPGAINLOG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push ebx
call sub.MFC42.DLL_CString::CString_2
call fcn.0040bfd0
add esp, 8
cmp eax, 0x38
mov eax, dword [esp + 0x14]
jne 0x42eeaa
mov ecx, 0xe
mov esi, eax
mov edi, 0x5365e0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x14]
add esp, 4
push edx
push 0
push str.ExpGainTimes
push str.EXPGAINLOG
call esi
cmp eax, 0x96
mov dword [ebp + 0xc0], eax
jb 0x42eedd
mov dword [ebp + 0xb24], 1
mov eax, dword [esp + 0x10]
push eax
push 0
push str.McExpGain
push str.EXPGAINLOG
call esi
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1020], eax
mov eax, dword [0x536d10]
mov ecx, 0x12c
cmp dword [eax + 0x1020], ecx
jb 0x42ef24
mov dword [eax + 0xfb4], 1
mov edx, dword [0x536d10]
mov dword [edx + 0x1020], ecx
mov eax, dword [esp + 0x10]
push eax
push 0
push str.FecesCnt
push str.EXPGAINLOG
call esi
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1024], eax
mov eax, dword [0x536d10]
mov ecx, 0x64
cmp dword [eax + 0x1024], ecx
jb 0x42ef5b
mov dword [eax + 0x1024], ecx
lea edx, [esp + 0x40]
push edx
call sub.MFC42.DLL_CTime::GetTickCount
mov edi, dword [eax]
mov ecx, ebp
call fcn.004432e0
push ebx
mov dword [ebp + 0xac], eax
mov dword [ebp + 0x84], edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [0x5362c0]
mov edx, dword [0x5362f0]
mov eax, dword [0x5362bc]
mov ebx, dword [0x5362d0]
mov edi, dword [0x5362cc]
mov ecx, 1
and esi, ecx
and edx, ecx
mov dword [0x5362c0], esi
mov esi, dword [0x5362e8]
mov dword [0x5362f0], edx
mov edx, dword [0x5362c4]
and eax, ecx
and ebx, ecx
and edi, ecx
and esi, ecx
and edx, ecx
mov dword [0x5362bc], eax
mov eax, dword [0x5362ec]
mov dword [0x5362d0], ebx
mov ebx, dword [0x5362d4]
mov dword [0x5362cc], edi
mov edi, dword [0x5362dc]
mov dword [0x5362e8], esi
mov esi, dword [0x5362d8]
mov dword [0x5362c4], edx
mov edx, dword [0x5362e0]
and eax, ecx
and ebx, ecx
and edi, ecx
and esi, ecx
and edx, ecx
mov dword [0x5362ec], eax
mov eax, dword [0x5362f8]
mov dword [0x5362d4], ebx
mov ebx, dword [0x5362c8]
mov dword [0x5362dc], edi
mov edi, dword [0x5362b8]
mov dword [0x5362d8], esi
mov esi, dword [0x53649c]
mov dword [0x5362e0], edx
mov edx, dword [0x5364a4]
and eax, ecx
and ebx, ecx
and edi, 0x7bff
and esi, 0x3f
and edx, 0x1fffdff
mov dword [0x5362f8], eax
mov eax, dword [0x5365bc]
mov dword [0x5362c8], ebx
mov ebx, dword [0x5365b8]
mov dword [0x5362b8], edi
mov edi, dword [0x5365c4]
mov dword [0x53649c], esi
mov esi, dword [0x5365cc]
mov dword [0x5364a4], edx
mov edx, dword [0x5365c8]
add esp, 4
and eax, ecx
and ebx, ecx
and edi, ecx
and esi, ecx
and edx, ecx
mov dword [0x5365bc], eax
mov eax, dword [0x536558]
mov dword [0x5365c4], edi
mov dword [0x5365b8], ebx
mov dword [0x5365cc], esi
mov dword [0x5365c8], edx
mov dword [0x5365a8], 0xa
mov edi, 0x3e7
cmp eax, edi
jbe 0x42f0db
mov dword [0x536558], edi
mov edx, dword [0x536560]
mov eax, 0x270f
cmp edx, eax
jbe 0x42f0ef
mov dword [0x536560], eax
cmp dword [0x536564], eax
jbe 0x42f0fc
mov dword [0x536564], eax
cmp dword [0x536568], eax
jbe 0x42f109
mov dword [0x536568], eax
cmp dword [0x5365a4], edi
jbe 0x42f117
mov dword [0x5365a4], edi
cmp dword [0x53655c], edi
jbe 0x42f125
mov dword [0x53655c], edi
cmp dword [0x536590], edi
jbe 0x42f133
mov dword [0x536590], edi
cmp dword [0x536550], edi
jbe 0x42f141
mov dword [0x536550], edi
cmp dword [0x53657c], edi
jbe 0x42f14f
mov dword [0x53657c], edi
cmp dword [0x536598], edi
jbe 0x42f15d
mov dword [0x536598], edi
cmp dword [0x5365a0], edi
jbe 0x42f16b
mov dword [0x5365a0], edi
cmp dword [0x53659c], edi
jbe 0x42f179
mov dword [0x53659c], edi
mov eax, dword [ebp + 0x9b8]
mov edx, dword [0x5362fc]
dec eax
cmp edx, eax
jbe 0x42f18f
mov dword [0x5362fc], eax
mov eax, dword [0x536330]
cmp eax, edi
jbe 0x42f1a0
mov dword [0x536330], edi
jmp 0x42f1aa
cmp eax, ecx
jae 0x42f1aa
mov dword [0x536330], ecx
mov eax, dword [0x536334]
cmp eax, edi
jbe 0x42f1bb
mov dword [0x536334], edi
jmp 0x42f1c5
cmp eax, ecx
jae 0x42f1c5
mov dword [0x536334], ecx
mov edx, dword [0x536338]
mov eax, 0x1e
cmp edx, eax
jbe 0x42f1d9
mov dword [0x536338], eax
mov eax, dword [0x53632c]
mov edx, 9
cmp eax, edx
jbe 0x42f1ef
mov dword [0x53632c], edx
jmp 0x42f1f9
cmp eax, ecx
jae 0x42f1f9
mov dword [0x53632c], ecx
mov eax, dword [0x5365b0]
cmp eax, ecx
jae 0x42f20a
mov dword [0x5365b0], ecx
jmp 0x42f214
cmp eax, edx
jbe 0x42f214
mov dword [0x5365b0], edx
cmp dword [0x5365ac], edi
jbe 0x42f222
mov dword [0x5365ac], edi
mov eax, dword [0x5365b4]
mov ebx, 0x63
cmp eax, ebx
jbe 0x42f236
mov dword [0x5365b4], ebx
mov eax, dword [0x536320]
mov ecx, 0x18
cmp eax, ecx
jbe 0x42f251
mov dword [0x536320], ecx
mov esi, 2
jmp 0x42f260
mov esi, 2
cmp eax, esi
jae 0x42f260
mov dword [0x536320], esi
mov eax, dword [0x53631c]
cmp eax, 1
jae 0x42f276
mov dword [0x53631c], 1
jmp 0x42f280
cmp eax, edx
jbe 0x42f280
mov dword [0x53631c], edx
mov eax, 0x17
cmp dword [0x536314], eax
jbe 0x42f292
mov dword [0x536314], eax
cmp dword [0x536310], eax
jbe 0x42f29f
mov dword [0x536310], eax
cmp dword [0x536318], edx
jbe 0x42f2ad
mov dword [0x536318], edx
mov eax, 1
cmp word [0x536328], ax
jae 0x42f2c1
mov word [0x536328], ax
mov eax, dword [0x536344]
cmp eax, 1
jae 0x42f2d7
mov dword [0x536344], 1
jmp 0x42f2e1
cmp eax, edx
jbe 0x42f2e1
mov dword [0x536344], edx
mov eax, dword [0x536340]
cmp eax, ecx
jbe 0x42f2f2
mov dword [0x536340], ecx
jmp 0x42f2fc
cmp eax, esi
jae 0x42f2fc
mov dword [0x536340], esi
mov eax, dword [0x53633c]
mov ecx, 1
cmp eax, ecx
jae 0x42f312
mov dword [0x53633c], ecx
jmp 0x42f31c
cmp eax, edx
jbe 0x42f31c
mov dword [0x53633c], edx
cmp dword [0x536494], ebx
jbe 0x42f32a
mov dword [0x536494], ebx
cmp dword [0x536498], edi
jbe 0x42f338
mov dword [0x536498], edi
cmp dword [0x536478], edi
jbe 0x42f346
mov dword [0x536478], edi
cmp dword [0x53647c], edi
jbe 0x42f354
mov dword [0x53647c], edi
mov eax, dword [0x5364b0]
and eax, ecx
mov dword [0x5364b0], eax
mov eax, dword [0x5364b4]
and eax, ecx
mov dword [0x5364b4], eax
mov eax, dword [0x5364c8]
and eax, ecx
mov dword [0x5364c8], eax
mov eax, dword [0x5364a8]
and eax, ecx
mov dword [0x5364a8], eax
mov eax, dword [0x5364d0]
and eax, ecx
mov dword [0x5364d0], eax
mov eax, dword [0x5364dc]
and eax, ecx
mov dword [0x5364dc], eax
mov eax, dword [0x536524]
cmp eax, 5
jae 0x42f3b2
mov dword [0x536524], 5
jmp 0x42f3bc
cmp eax, edi
jbe 0x42f3bc
mov dword [0x536524], edi
mov eax, dword [0x5364e8]
cmp eax, ecx
jae 0x42f3c9
mov eax, ecx
jmp 0x42f3cf
cmp eax, edi
jbe 0x42f3d4
mov eax, edi
mov dword [0x5364e8], eax
mov ecx, dword [0x5364ec]
cmp ecx, edi
jbe 0x42f3e6
mov ecx, edi
mov dword [0x5364ec], ecx
cmp eax, ecx
jbe 0x42f3f0
mov dword [0x5364e8], ecx
cmp dword [0x5364f0], ebx
jbe 0x42f3fe
mov dword [0x5364f0], ebx
mov eax, dword [0x5364f4]
mov ecx, 1
and eax, ecx
mov dword [0x5364f4], eax
mov eax, dword [0x53652c]
and eax, ecx
mov dword [0x53652c], eax
mov eax, dword [0x53651c]
and eax, ecx
mov dword [0x53651c], eax
mov eax, dword [0x536348]
cmp eax, edx
jbe 0x42f436
mov dword [0x536348], edx
cmp dword [0x53634c], edx
jbe 0x42f444
mov dword [0x53634c], edx
cmp dword [0x5364a0], esi
jbe 0x42f452
mov dword [0x5364a0], esi
cmp dword [0x536490], edi
jbe 0x42f460
mov dword [0x536490], edi
mov eax, dword [0x5365d8]
cmp eax, ecx
jae 0x42f471
mov dword [0x5365d8], ecx
jmp 0x42f47b
cmp eax, ebx
jbe 0x42f47b
mov dword [0x5365d8], ebx
cmp dword [0x5365dc], edx
jbe 0x42f489
mov dword [0x5365dc], edx
mov eax, dword [0x536558]
mov ecx, ebp
push eax
call fcn.00435b00
mov dword [ebp + 0xba4], eax
mov ecx, dword [0x536560]
push ecx
mov ecx, ebp
call fcn.00435b00
mov dword [ebp + 0xbac], eax
mov edx, dword [0x5365a4]
push edx
mov ecx, ebp
call fcn.00435b00
mov dword [ebp + 0xbd4], eax
mov eax, dword [0x53655c]
push eax
mov ecx, ebp
call fcn.00435b00
mov dword [ebp + 0xba8], eax
mov ecx, dword [0x536590]
push ecx
mov ecx, ebp
call fcn.00435b00
mov dword [ebp + 0xbc8], eax
mov edx, dword [0x536550]
push edx
mov ecx, ebp
call fcn.00435b00
mov dword [ebp + 0xba0], eax
mov eax, dword [0x536598]
push eax
mov ecx, ebp
call fcn.00435b00
mov dword [ebp + 0xbd0], eax
mov ecx, dword [0x536558]
push ecx
mov ecx, ebp
call fcn.00435b00
mov edx, dword [0x536d10]
mov ecx, ebp
mov dword [edx + 0x1030], eax
mov eax, dword [0x536564]
push eax
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1038], eax
mov edx, dword [0x5365a4]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1060], eax
mov edx, dword [0x53655c]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1034], eax
mov edx, dword [0x536590]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1054], eax
mov edx, dword [0x536550]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x102c], eax
mov edx, dword [0x536598]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x105c], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42f64b
cmp dword [esp + 0x24], 0x150
jae 0x42f64b
mov edi, dword [0x5362b8]
mov esi, dword [0x536420]
push 0x328
lea edx, [esp + 0x44]
or edi, 0x800
or esi, 0x1000
push 0x5362b8
push edx
mov dword [0x5362b8], edi
mov dword [0x536420], esi
call fcn.0040c0d0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push str.AllConfig
push str.CONFIG
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [0x536558]
mov ecx, ebp
push edx
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1888], eax
mov edx, dword [0x536568]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1890], eax
mov edx, dword [0x5365a4]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x18b8], eax
mov edx, dword [0x53655c]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x188c], eax
mov edx, dword [0x536590]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x18ac], eax
mov edx, dword [0x536550]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov dword [ecx + 0x1884], eax
mov edx, dword [0x536598]
push edx
mov ecx, ebp
call fcn.00435b00
mov ecx, dword [0x536d10]
mov byte [esp + 0x4c], 7
mov dword [ecx + 0x18b4], eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret