Function at 0x525c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x480
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x84]
test eax, eax
je 0x525ca0
lea ebx, [ebp + 0x80]
test ebx, ebx
jne 0x525caf
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x480
ret 8
mov edi, str.Characteristics_Integers
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x494]
lea eax, [esp + 0x27]
not ecx
mov edx, dword [edi]
dec ecx
mov esi, ecx
mov ecx, dword [edi + 4]
sub ecx, edx
mov edx, dword [esp + 0x28]
add ecx, esi
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004107b0
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00411220
mov eax, dword [esp + 0x28]
lea ecx, [esi + str.Characteristics_Integers]
push eax
push ecx
push str.Characteristics_Integers
lea ecx, [esp + 0x24]
call fcn.00406ae0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x6c]
push edx
call fcn.00407bf0
lea ecx, [esp + 0x18]
call fcn.00406010
mov edi, dword [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6c]
call fcn.00406010
lea ecx, [ebp + 0x12c]
lea edx, [esp + 0x90]
push ecx
push str.cPurchaseCost
push edx
mov ecx, ebx
call fcn.004169a0
xor edi, edi
and al, 1
lea ebx, [ebp + 0x130]
push edi
mov byte [esp + 0x17], al
push edi
push ebx
lea eax, [esp + 0x9c]
push str.cNameID
push eax
mov ecx, ebp
call fcn.0040e580
mov cl, byte [esp + 0x13]
push edi
and cl, al
lea eax, [ebp + 0x134]
mov byte [esp + 0x17], cl
push edi
push eax
lea ecx, [esp + 0x9c]
push str.cHelpID
push ecx
mov ecx, ebp
call fcn.0040e580
push edi
lea edx, [esp + 0x4c]
push edi
push edx
lea eax, [esp + 0x9c]
push str.cTall
push eax
mov ecx, ebp
mov dword [esp + 0x5c], edi
call fcn.0040e580
test al, al
je 0x525df0
cmp dword [esp + 0x48], 1
sete cl
mov byte [ebp + 0x58], cl
push edi
lea edx, [ebp + 0x50]
push edi
push edx
lea eax, [esp + 0x9c]
push str.cIconZoom
push eax
mov ecx, ebp
call fcn.0040e580
mov ecx, dword [ebx]
push ecx
call fcn.0040c760
add esp, 4
test al, al
je 0x52608f
mov eax, dword [ebp + 0x7c]
cmp eax, edi
je 0x525e2b
mov dword [ebx], eax
jmp 0x526087
mov esi, dword [ebp + 0x98]
lea edx, [esp + 0x12]
push edi
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.0046fe80
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00406380
mov esi, dword [0x6217a8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, 0x6217a8
call fcn.004d0f70
mov ecx, dword [eax]
cmp ecx, esi
lea ecx, [esp + 0x18]
sete byte [esp + 0x27]
call fcn.00406010
mov al, byte [esp + 0x27]
test al, al
jne 0x525f8b
mov esi, dword [ebp + 0x98]
xor eax, eax
lea edx, [esp + 0x12]
push eax
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.0046fe80
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00406380
lea eax, [esp + 0x18]
lea ecx, [esp + 0x7c]
push eax
push ecx
mov ecx, 0x6217a8
call fcn.0040fcf0
mov edx, dword [eax]
lea eax, [esp + 0x80]
push eax
mov ecx, 0x6217a8
mov dword [esp + 0x18], edx
call fcn.005d8060
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
je 0x525f1c
lea eax, [ecx + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00406410
add esp, 8
test al, al
je 0x525f63
lea edx, [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x30], 0
call fcn.0040f6a0
push eax
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0x34]
mov ecx, 0x6217a8
push eax
call fcn.005c5400
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x6c]
call fcn.00406010
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0x1c]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0041d810
mov edx, dword [ebx]
mov dword [ebp + 0x7c], edx
jmp 0x526085
call fcn.0040c730
mov esi, dword [ebp + 0x98]
mov dword [ebx], eax
mov dword [ebp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x28]
call fcn.0046fe80
mov ecx, dword [esp + 0x2c]
mov edi, esi
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.004067a0
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, 0x6217a8
call fcn.0040fcf0
mov ecx, dword [eax]
lea edx, [esp + 0x80]
mov dword [esp + 0x14], ecx
push edx
mov ecx, 0x6217a8
call fcn.005d8060
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
je 0x52601d
lea eax, [ecx + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00406410
add esp, 8
test al, al
je 0x526067
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x30], 0
call fcn.0040f6a0
push eax
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
push eax
call fcn.005d82d0
lea ecx, [esp + 0x84]
push ecx
mov ecx, 0x6217a8
call fcn.005c5400
mov edx, dword [eax]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], edx
call fcn.00406010
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
mov dword [ecx + 0x1c], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
sub edx, eax
push edx
push eax
call fcn.0041d810
xor edi, edi
mov eax, dword [ebx]
mov dword [ebp + 0x134], eax
lea esi, [ebp + 0xb4]
push edi
mov ecx, esi
push edi
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x5c]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x9c]
mov ecx, dword [ecx + 8]
push str.cFootprintX
mov dword [esp + 0x6c], ecx
push eax
mov ecx, ebp
call fcn.0040e580
push edi
lea ecx, [esp + 0x5c]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cFootprintY
push edx
mov ecx, ebp
call fcn.0040e580
push edi
lea eax, [esp + 0x60]
push edi
push eax
lea ecx, [esp + 0x9c]
push str.cFootprintZ
push ecx
mov ecx, ebp
call fcn.0040e580
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
lea esi, [ebp + 0xc0]
push edi
push edi
mov dword [esi], eax
lea eax, [esp + 0x98]
mov dword [esi + 4], ecx
mov ecx, ebp
mov dword [esi + 8], edx
lea edx, [ebp + 0x150]
push edx
push str.cMapFootprint
push eax
call fcn.0040e580
push edi
lea ecx, [esp + 0x48]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.walkable
push edx
mov ecx, ebp
mov dword [esp + 0x58], edi
call fcn.0040e580
test al, al
mov esi, 1
je 0x52616d
cmp dword [esp + 0x44], esi
sete al
mov byte [ebp + 0x56], al
push edi
lea ecx, [esp + 0x64]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.walkableByTall
push edx
mov ecx, ebp
mov dword [esp + 0x74], edi
call fcn.0040e580
test al, al
je 0x52619a
cmp dword [esp + 0x60], esi
sete al
mov byte [ebp + 0x57], al
push edi
lea ecx, [esp + 0x6c]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cSwims
push edx
mov ecx, ebp
mov dword [esp + 0x7c], edi
call fcn.0040e580
test al, al
je 0x5261ca
cmp dword [esp + 0x68], esi
sete al
mov byte [ebp + 0x17c], al
push edi
lea ecx, [esp + 0x50]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cSurface
push edx
mov ecx, ebp
mov dword [esp + 0x60], edi
call fcn.0040e580
test al, al
je 0x5261fa
cmp dword [esp + 0x4c], esi
sete al
mov byte [ebp + 0x17d], al
push edi
lea ecx, [esp + 0x44]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cUnderwater
push edx
mov ecx, ebp
mov dword [esp + 0x54], edi
call fcn.0040e580
test al, al
je 0x52622a
cmp dword [esp + 0x40], esi
sete al
mov byte [ebp + 0x17e], al
push edi
lea ecx, [esp + 0x54]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cOnlyUnderwater
push edx
mov ecx, ebp
mov dword [esp + 0x64], edi
call fcn.0040e580
test al, al
je 0x52625a
cmp dword [esp + 0x50], esi
sete al
mov byte [ebp + 0x17f], al
push edi
lea ecx, [esp + 0x38]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cSkipTrickHappiness
push edx
mov ecx, ebp
mov dword [esp + 0x48], edi
call fcn.0040e580
test al, al
je 0x526287
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x180], eax
push edi
lea ecx, [esp + 0x68]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cSkipTrickChance
push edx
mov ecx, ebp
mov dword [esp + 0x78], edi
call fcn.0040e580
test al, al
je 0x5262b4
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x184], eax
push edi
lea ecx, [esp + 0x3c]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cDepth
push edx
mov ecx, ebp
mov dword [esp + 0x4c], edi
call fcn.0040e580
test al, al
je 0x5262de
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x68], eax
push edi
lea ecx, [esp + 0x40]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cHeight
push edx
mov ecx, ebp
mov dword [esp + 0x50], edi
call fcn.0040e580
test al, al
je 0x526308
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x64], eax
push edi
lea ecx, [esp + 0x34]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cSlowAnimSpeedWater
push edx
mov ecx, ebp
call fcn.0040e580
test al, al
je 0x526333
mov ax, word [esp + 0x30]
mov word [ebp + 0x154], ax
push edi
lea ecx, [esp + 0x34]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cMediumAnimSpeedWater
push edx
mov ecx, ebp
call fcn.0040e580
test al, al
je 0x52635e
mov ax, word [esp + 0x30]
mov word [ebp + 0x156], ax
push edi
lea ecx, [esp + 0x34]
push edi
push ecx
lea edx, [esp + 0x9c]
push str.cFastAnimSpeedWater
push edx
mov ecx, ebp
call fcn.0040e580
test al, al
je 0x526389
mov ax, word [esp + 0x30]
mov word [ebp + 0x158], ax
mov edi, str.Characteristics_Strings
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x494]
repne scasb al, byte es:[edi]
mov eax, dword [esi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esi + 4]
sub ecx, eax
lea eax, [esp + 0x12]
lea edx, [ecx + edi + 1]
lea ecx, [esp + 0x18]
push edx
push eax
call fcn.00405da0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push edx
mov byte [ecx], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00411220
mov edx, dword [esp + 0x2c]
lea eax, [edi + str.Characteristics_Strings]
push edx
push eax
push str.Characteristics_Strings
lea ecx, [esp + 0x24]
call fcn.00406ae0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x70]
call fcn.00407bf0
lea ecx, [esp + 0x18]
call fcn.00406010
mov edx, dword [esp + 0x6c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x90]
mov eax, ecx
mov esi, edi
mov edi, ebx
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 + 0x74]
sub ecx, edx
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.0041d810
lea edx, [esp + 0x90]
lea eax, [esp + 0x84]
push edx
push eax
lea ecx, [ebp + 0x80]
call fcn.00416770
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
sub ecx, edx
sar ecx, 2
je 0x52658c
push 0
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x9c]
push str.cInfoImageName
lea edx, [esp + 0x2a0]
push ecx
mov ecx, ebp
mov dword [esp + 0x28], edx
call fcn.0040e600
test al, al
je 0x52650d
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [ebp + 0x15c]
lea ebx, [ebp + 0x15c]
not ecx
dec ecx
mov eax, edx
add ecx, edx
cmp edx, ecx
je 0x5264dc
cmp esi, dword [ebx + 4]
je 0x5264d8
mov dl, byte [eax]
inc eax
mov byte [esi], dl
inc esi
cmp eax, ecx
jne 0x5264c7
jmp 0x5264dc
cmp eax, ecx
jne 0x5264ff
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x52650d
mov eax, edi
sub eax, edi
inc eax
push eax
push edi
push esi
call fcn.00403770
mov eax, dword [ebx + 4]
sub esi, edi
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
jmp 0x52650d
mov edx, dword [esp + 0x2c]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.00406ae0
push 0
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x9c]
push str.cListImageName
push ecx
mov ecx, ebp
call fcn.0040e600
test al, al
je 0x52658c
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add ebp, 0x168
repne scasb al, byte es:[edi]
mov esi, dword [ebp]
mov eax, edx
not ecx
dec ecx
add ecx, edx
cmp edx, ecx
je 0x526570
cmp esi, dword [ebp + 4]
je 0x52656c
mov dl, byte [eax]
inc eax
mov byte [esi], dl
inc esi
cmp eax, ecx
jne 0x52654f
mov eax, dword [ebp + 4]
mov ecx, ebp
push eax
push esi
call fcn.00407dd0
jmp 0x52658c
cmp eax, ecx
jne 0x52657e
mov eax, dword [ebp + 4]
mov ecx, ebp
push eax
push esi
call fcn.00407dd0
jmp 0x52658c
mov edx, dword [esp + 0x2c]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.004071f0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5265b0
mov ecx, dword [esp + 0x8c]
sub ecx, eax
sar ecx, 2
shl ecx, 2
push ecx
push eax
call fcn.00406670
add esp, 8
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x480
ret 8