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

Disassembly:
push 0xffffffffffffffff
push 0x69b25b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa64
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa84]
mov ebx, ecx
xor ebp, ebp
mov eax, esi
push edi
mov dword [esp + 0x24], ebx
mov dword [ebx + 0x1401ec], ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450730
sub eax, edx
lea edi, [eax - 4]
push edi
lea eax, [esp + 0x74]
push esi
push eax
call fcn.005ba680
push esi
mov byte [esp + edi + 0x80], 0
call fcn.00697fa0
push esi
push str.data_world
lea ecx, [esp + 0x68c]
push 0x6aae74
push ecx
call fcn.005baa1d
or esi, 0xffffffff
add esp, 0x20
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.0058dd70
push ebp
lea edx, [esp + 0x678]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0xa84], ebp
call fcn.0058dd80
test al, al
lea ecx, [esp + 0x10]
jne 0x4507b5
mov dword [esp + 0xa7c], esi
call fcn.0058dd70
xor al, al
jmp 0x45123e
push 4
lea eax, [esp + 0x44]
push eax
call fcn.0058dd50
test al, al
jne 0x4507dc
lea ecx, [esp + 0x10]
mov dword [esp + 0xa7c], esi
call fcn.0058dd70
xor al, al
jmp 0x45123e
mov ebp, dword [esp + 0xa8c]
mov edi, 0x6ac508
lea esi, [esp + 0x40]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x450a4a
mov byte [esp + 0x17], dl
mov al, byte [ebx + 9]
test al, al
je 0x450811
lea ecx, [ebx + 0x13cc3c]
call fcn.00593ae0
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0058dd50
test al, al
je 0x450def
mov eax, dword [esp + 0x18]
push eax
mov ecx, ebx
mov dword [ebx + 0x1400e4], eax
call fcn.00445c60
test al, al
je 0x450def
test ebp, ebp
je 0x450853
push 0x3dcccccd
mov ecx, ebp
call fcn.004afca0
mov eax, dword [esp + 0xa84]
lea ecx, [esp + 0x10]
push ecx
push str.data_Terrain_detail
lea edx, [esp + 0x78]
push edx
push eax
lea ecx, [ebx + 0xc]
call fcn.00590c10
test al, al
je 0x450def
push 0
push 0x14
mov ecx, 0x21f1d78
call fcn.00525940
push 1
push 0x14
mov ecx, 0x21f1d78
call fcn.00525940
push 2
push 0x14
mov ecx, 0x21f1d78
call fcn.00525940
push 0
push 5
push str.ch_walks001.wav
push 0
push 0x14
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walks002.wav
push 1
push 0x14
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walks003.wav
push 2
push 0x14
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 0x13
mov ecx, 0x21f1d78
call fcn.00525940
push 1
push 0x13
mov ecx, 0x21f1d78
call fcn.00525940
push 2
push 0x13
mov ecx, 0x21f1d78
call fcn.00525940
push 0
push 5
push str.ch_walkw001.wav
push 0
push 0x13
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walkw002.wav
push 1
push 0x13
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walkw003.wav
push 2
push 0x13
mov ecx, 0x21f1d78
call fcn.00525aa0
mov eax, dword [0x2237ab4]
test eax, eax
jle 0x450c2e
mov ebp, 0x15
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x21f2ae4
lea ebx, [ebx]
mov ecx, dword [0x2237ab0]
mov edx, dword [esp + 0x20]
lea ebx, [edx + ecx + 0x338]
test ebx, ebx
je 0x450c04
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4509a0
sub eax, edx
mov dword [esp + 0x48], eax
je 0x450c04
push 0
push ebp
mov ecx, 0x21f1d78
call fcn.00525940
push 1
push ebp
mov ecx, 0x21f1d78
call fcn.00525940
push 2
push ebp
mov ecx, 0x21f1d78
call fcn.00525940
xor eax, eax
mov edi, str.ch_walks001.wav
mov esi, ebx
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
push eax
push 5
jne 0x450b58
push str.ch_walks001.wav
push eax
push ebp
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walks002.wav
push 1
push ebp
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walks003.wav
push 2
push ebp
mov ecx, 0x21f1d78
call fcn.00525aa0
lea ecx, [ebp - 0x15]
cmp ecx, 0x14
jge 0x450c04
mov edx, dword [esp + 0x1c]
mov word [edx], 6
jmp 0x450c04
mov edi, 0x6ac490
lea esi, [esp + 0x40]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x450a65
mov byte [esp + 0x17], 1
jmp 0x450a71
mov al, byte [esp + 0x17]
test al, al
je 0x4507ff
push 1
call fcn.00591460
add esp, 4
push pe_nt_image_headers32
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
test al, al
je 0x450def
mov al, byte [ebx + 9]
test al, al
je 0x450aad
lea ecx, [ebx + 0x13cc3c]
call fcn.00593ae0
jmp 0x450ab9
push 0x400
mov ecx, ebx
call fcn.00445c60
lea edx, [esp + 0x170]
push edx
push str.data_world_dungeon
lea ecx, [ebx + 0x13cc3c]
call fcn.00593750
test al, al
je 0x450def
push 0
push 0x14
mov ecx, 0x21f1d78
call fcn.00525940
push 1
push 0x14
mov ecx, 0x21f1d78
call fcn.00525940
push 2
push 0x14
mov ecx, 0x21f1d78
call fcn.00525940
push 0
push 5
push str.ch_walkd001.wav
push 0
push 0x14
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walkd002.wav
push 1
push 0x14
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walkd003.wav
push 2
push 0x14
mov ecx, 0x21f1d78
call fcn.00525aa0
mov ebp, dword [esp + 0xa8c]
mov esi, dword [esp + 0x24]
jmp 0x450c8f
mov edi, str.ch_walkg001.wav
mov esi, ebx
mov ecx, 0x10
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov ecx, 0x21f1d78
jne 0x450bba
push str.ch_walkg001.wav
push eax
push ebp
call fcn.00525aa0
push 0
push 5
push str.ch_walkg002.wav
push 1
push ebp
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walkg003.wav
push 2
push ebp
mov ecx, 0x21f1d78
call fcn.00525aa0
lea ecx, [ebp - 0x15]
cmp ecx, 0x14
jge 0x450c04
mov edx, dword [esp + 0x1c]
mov word [edx], 3
jmp 0x450c04
push str.ch_walke001.wav
push 0
push ebp
call fcn.00525aa0
push 0
push 5
push str.ch_walke002.wav
push 1
push ebp
mov ecx, 0x21f1d78
call fcn.00525aa0
push 0
push 5
push str.ch_walke003.wav
push 2
push ebp
mov ecx, 0x21f1d78
call fcn.00525aa0
lea eax, [ebp - 0x15]
cmp eax, 0x14
jge 0x450c04
mov ecx, dword [esp + 0x1c]
mov word [ecx], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x2237ab4]
add esi, 0x438
inc ebp
add ecx, 2
lea edx, [ebp - 0x15]
cmp edx, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ecx
jl 0x450980
mov ebp, dword [esp + 0xa8c]
test ebp, ebp
je 0x450c45
push 0x3e99999a
mov ecx, ebp
call fcn.004afca0
push pe_nt_image_headers32
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x18]
call fcn.0058dd50
test al, al
je 0x450def
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x170]
push ecx
push str.data_entity_water
lea ecx, [esi + 0x13cfe4]
call fcn.0059e040
test ebp, ebp
je 0x450c8f
push 0x3ecccccd
mov ecx, ebp
call fcn.004afca0
mov bl, byte [esp + 0x17]
lea edx, [esp + 0x10]
push edx
push str.data_entity_building
lea ecx, [esi + 0x13d400]
mov byte [esi + 9], bl
call fcn.004451d0
test al, al
je 0x450def
test ebp, ebp
je 0x450cc3
push 0x3f000000
mov ecx, ebp
call fcn.004afca0
lea eax, [esp + 0x10]
push eax
push str.data_entity_shape
lea ecx, [esi + 0x13d468]
call fcn.004451d0
test al, al
je 0x450def
test ebp, ebp
je 0x450cf0
push 0x3f19999a
mov ecx, ebp
call fcn.004afca0
lea ecx, [esp + 0x10]
push ecx
push str.data_entity_tree
lea ecx, [esi + 0x13d4d0]
call fcn.004451d0
test al, al
je 0x450def
test ebp, ebp
je 0x450d1d
push 0x3f333333
mov ecx, ebp
call fcn.004afca0
lea edx, [esp + 0x10]
push edx
push str.data_entity_grass
lea ecx, [esi + 0x13d538]
call fcn.004451d0
test al, al
je 0x450def
lea eax, [esp + 0x10]
push eax
push str.data_entity_vani
lea ecx, [esi + 0x13d5a0]
call fcn.004455c0
test al, al
lea ecx, [esp + 0x10]
je 0x450efe
push ecx
push str.data_entity_vani
lea ecx, [esi + 0x13d608]
call fcn.004455c0
test al, al
je 0x450def
lea edx, [esp + 0x10]
push edx
push str.data_world_dungeon
lea ecx, [esi + 0x13d670]
call fcn.004459b0
test al, al
je 0x450def
lea eax, [esp + 0x10]
push eax
push str.data_entity_mani
lea ecx, [esi + 0x13d6d8]
call fcn.0041ede0
test al, al
je 0x450def
push pe_nt_image_headers32
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
test al, al
je 0x450def
lea ecx, [esi + 0x13d80c]
call fcn.00412280
mov ecx, 0x21fa3cc
call fcn.0041f820
mov eax, dword [0x705dd0]
test eax, eax
mov ecx, 0x21fa3cc
je 0x450e0a
lea edx, [esp + 0x70]
push edx
push str.data_Effect
call fcn.00543cf0
test eax, eax
jne 0x450e1d
lea ecx, [esp + 0x10]
mov dword [esp + 0xa7c], 0xffffffff
call fcn.0058dd70
xor al, al
jmp 0x45123e
push str.L_portal.EFT
push str.data_Effect
call fcn.00543cf0
test eax, eax
je 0x450def
push 4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.0058dd50
test al, al
je 0x450def
mov eax, dword [esp + 0x34]
xor edi, edi
test eax, eax
jle 0x450ed1
nop
push 0xc
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
test al, al
lea ecx, [esp + 0x10]
je 0x450efe
push 0xc
lea edx, [esp + 0x50]
push edx
call fcn.0058dd50
test al, al
lea ecx, [esp + 0x10]
je 0x450efe
push 0xc
lea eax, [esp + 0x68]
push eax
call fcn.0058dd50
test al, al
je 0x450def
push 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
test al, al
je 0x450def
mov eax, dword [0x705dd0]
test eax, eax
je 0x450ec4
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x60]
push ecx
push edx
mov ecx, esi
call fcn.0044f450
mov eax, dword [esp + 0x34]
inc edi
cmp edi, eax
jl 0x450e40
test ebp, ebp
je 0x450ee1
push 0x3f4ccccd
mov ecx, ebp
call fcn.004afca0
lea eax, [esp + 0x10]
push eax
push str.data_entity_object
lea ecx, [esi + 0x13d740]
call fcn.00520a10
test al, al
lea ecx, [esp + 0x10]
jne 0x450f15
mov dword [esp + 0xa7c], 0xffffffff
call fcn.0058dd70
xor al, al
jmp 0x45123e
push ecx
push str.data_entity_object
lea ecx, [esi + 0x13d7a0]
call fcn.00521340
test al, al
je 0x450def
lea edx, [esp + 0x10]
push edx
mov ecx, 0x21f2b10
call fcn.005270c0
test al, al
je 0x450def
lea eax, [esp + 0x10]
push eax
mov ecx, 0x21f1cd8
call fcn.00522a20
test al, al
je 0x450def
test bl, bl
jne 0x450fbc
push pe_nt_image_headers32
lea ecx, [esp + 0x274]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
push pe_nt_image_headers32
lea edx, [esp + 0x578]
push edx
lea ecx, [esp + 0x18]
call fcn.0058dd50
push pe_nt_image_headers32
lea eax, [esp + 0x374]
push eax
lea ecx, [esp + 0x18]
call fcn.0058dd50
lea ecx, [esp + 0x370]
push ecx
lea edx, [esp + 0x578]
push edx
lea eax, [esp + 0x278]
push eax
jmp 0x450ff8
mov eax, dword [esi + 0x1402b8]
test eax, eax
je 0x451003
mov ax, word [0x852b18]
cmp ax, 0x27
jne 0x450fe3
push str.clouds01_A1.tga
push str.clouds01_A1.tga
push str.Sky_A1.bmp
jmp 0x450ff8
cmp ax, 0x28
jne 0x451003
push str.clouds01_A1.tga
push str.clouds01_A1.tga
push str.sky_B1.bmp
lea ecx, [esi + 0x13ff68]
call fcn.005364d0
push 0xc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0058dd50
fld dword [esp + 0x28]
mov dword [0x21f42f0], 0x3f800000
call fcn.005ba9a8
movzx ecx, al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [0x21f42e4]
fld dword [esp + 0x2c]
call fcn.005ba9a8
movzx ecx, al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp dword [0x21f42e8]
fld dword [esp + 0x30]
call fcn.005ba9a8
movzx ecx, al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
push 0xc
fild dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
fstp dword [0x21f42ec]
call fcn.0058dd50
fld dword [esp + 0x28]
call fcn.005ba9a8
fld dword [esp + 0x2c]
movzx edi, al
or edi, 0xffffff00
shl edi, 8
call fcn.005ba9a8
movzx edx, al
fld dword [esp + 0x30]
or edi, edx
shl edi, 8
call fcn.005ba9a8
movzx eax, al
push 0xc
lea ecx, [esp + 0x2c]
or edi, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [0x21f42f4], edi
call fcn.0058dd50
fld dword [esp + 0x28]
call fcn.005ba9a8
fld dword [esp + 0x2c]
mov bl, al
call fcn.005ba9a8
fld dword [esp + 0x30]
mov byte [esp + 0x17], al
call fcn.005ba9a8
movzx edx, byte [esp + 0x17]
movzx ecx, bl
mov dword [esp + 0x18], ecx
or ecx, 0xffffff00
shl ecx, 8
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
mov dword [0x21f42e0], ecx
mov ecx, dword [0x705814]
mov dword [esp + 0x24], edx
mov edx, dword [ecx]
push 0x25
mov dword [esp + 0x24], eax
call dword [edx + 4]
test al, al
je 0x4511a8
fild dword [esp + 0x18]
mov eax, 0x437f0000
mov dword [esi + 0x140070], eax
mov dword [esi + 0x140080], eax
fst dword [esi + 0x140064]
fild dword [esp + 0x24]
fst dword [esi + 0x140068]
fild dword [esp + 0x20]
fst dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fstp dword [esi + 0x14006c]
mov dword [esi + 0x14007c], eax
fxch st(1)
fstp dword [esi + 0x140074]
fstp dword [esi + 0x140078]
push 4
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
mov dword [0x21f42e0], 0xff000000
call fcn.0058dd50
push 4
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x18]
call fcn.0058dd50
test ebp, ebp
je 0x4511e2
push 0x3f800000
mov ecx, ebp
call fcn.004afca0
lea ecx, [esp + 0x10]
call fcn.0058dd70
mov eax, dword [0x6f3558]
test eax, eax
je 0x451223
movzx eax, word [0x852b18]
push eax
lea ecx, [esp + 0x474]
push str.DATAworld_d.txt
push ecx
call fcn.005baa1d
add esp, 0xc
lea edx, [esp + 0x470]
push edx
mov ecx, 0x21f1cd8
call fcn.005222a0
call fcn.00697fa0
lea ecx, [esp + 0x10]
mov dword [esp + 0xa7c], 0xffffffff
call fcn.0058dd70
mov al, 1
mov ecx, dword [esp + 0xa74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa70
ret 0xc