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

Disassembly:
push 0xffffffffffffffff
push 0x6632d6
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x704e7c]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov esi, dword [esp + 0x180]
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], esi
call fcn.004b81d0
lea edx, [esp + 0x38]
push edx
xor ebx, ebx
push esi
mov dword [esp + 0x180], ebx
call fcn.00561c80
add esp, 8
test al, al
jne 0x53a7e1
push esi
push str._CArea::Load_File_Load__s_ERROR
call fcn.00584480
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0x178], 0xffffffff
call fcn.004b7140
xor al, al
jmp 0x53afe0
push 0x14
push str.areaambiencedatafile
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00416f50
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x180], 1
call fcn.004b71a0
mov edi, eax
cmp esi, ebx
je 0x53a834
cmp esi, dword [edi]
je 0x53a839
call fcn.006111cc
cmp ebp, dword [edi + 4]
mov byte [esp + 0x178], bl
sete byte [esp + 0x17]
cmp dword [esp + 0x88], 0x10
jb 0x53a85f
mov edx, dword [esp + 0x74]
push edx
call fcn.00610458
add esp, 4
cmp byte [esp + 0x17], bl
je 0x53a874
mov eax, dword [esp + 0x18]
push eax
push str._CArea::__LoadAmbience_File_Format__s_ERROR_1
jmp 0x53a7be
push 0xb
push str.objectcount
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00416f50
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x180], 2
call fcn.004b71a0
mov edi, eax
cmp esi, ebx
je 0x53a8c7
cmp esi, dword [edi]
je 0x53a8cc
call fcn.006111cc
cmp ebp, dword [edi + 4]
mov byte [esp + 0x178], bl
sete byte [esp + 0x17]
cmp dword [esp + 0x88], 0x10
jb 0x53a8f2
mov eax, dword [esp + 0x74]
push eax
call fcn.00610458
add esp, 4
cmp byte [esp + 0x17], bl
je 0x53a907
mov ecx, dword [esp + 0x18]
push ecx
push str._CArea::__LoadAmbience_File_Format__s_ERROR_2
jmp 0x53a7be
push str.objectcount
lea ecx, [esp + 0x74]
call fcn.00417080
push ebx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x180], 3
call fcn.004b7010
mov ecx, eax
call fcn.00493ca0
mov edi, 0x10
mov esi, eax
mov byte [esp + 0x178], bl
cmp dword [esp + 0x88], edi
jb 0x53a957
mov eax, dword [esp + 0x74]
push eax
call fcn.00610458
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
cmp dword [esi + 0x18], edi
jb 0x53a977
mov esi, dword [esi + 4]
jmp 0x53a97a
add esi, 4
push esi
call fcn.006131fe
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x53afca
mov ecx, dword [esp + 0x18]
push ecx
push str.object_03d
lea edx, [esp + 0x150]
push 0x21
push edx
call fcn.006130ac
lea eax, [esp + 0x158]
add esp, 0x10
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53a9d0
sub eax, edx
push eax
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x24]
call fcn.00416f50
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x180], 4
call fcn.004b71a0
mov edi, eax
cmp esi, ebx
je 0x53aa18
cmp esi, dword [edi]
je 0x53aa1d
call fcn.006111cc
cmp ebp, dword [edi + 4]
mov byte [esp + 0x178], bl
sete byte [esp + 0x17]
cmp dword [esp + 0x34], 0x10
jb 0x53aa40
mov eax, dword [esp + 0x20]
push eax
call fcn.00610458
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x53afb7
lea eax, [esp + 0x148]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53aa64
sub eax, edx
push eax
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00416f50
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 5
call fcn.004b7010
mov ebp, 0x10
mov esi, eax
mov byte [esp + 0x178], bl
cmp dword [esp + 0x34], ebp
jb 0x53aab6
mov eax, dword [esp + 0x20]
push eax
call fcn.00610458
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x53aae6
call fcn.006111cc
mov edi, dword [esi + 0xc]
cmp dword [edi + 0x18], ebp
jb 0x53aaf3
mov edi, dword [edi + 4]
jmp 0x53aaf6
add edi, 4
mov eax, edi
mov dword [esp + 0x114], 0xf
mov dword [esp + 0x110], ebx
mov byte [esp + 0x100], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53ab14
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x104]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x178], 6
cmp eax, 1
ja 0x53ab56
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x1c
cmp dword [eax + 0x18], ebp
jb 0x53ab66
mov edi, dword [eax + 4]
jmp 0x53ab69
lea edi, [eax + 4]
mov eax, edi
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53ab87
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xcc]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x178], 7
cmp ecx, 2
ja 0x53abc9
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x38
cmp dword [eax + 0x18], ebp
jb 0x53abd9
mov edi, dword [eax + 4]
jmp 0x53abdc
lea edi, [eax + 4]
mov eax, edi
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53ac00
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xb0]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x178], 8
cmp eax, 3
ja 0x53ac42
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x54
cmp dword [eax + 0x18], ebp
jb 0x53ac52
mov edi, dword [eax + 4]
jmp 0x53ac55
lea edi, [eax + 4]
mov eax, edi
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53ac73
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x94]
call fcn.00416f50
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esp + 0x178], 9
cmp ecx, 4
ja 0x53acb5
call fcn.006111cc
mov eax, dword [esi + 0xc]
add eax, 0x70
cmp dword [eax + 0x18], ebp
jb 0x53acc5
mov edi, dword [eax + 4]
jmp 0x53acc8
lea edi, [eax + 4]
mov eax, edi
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x53ace6
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xe8]
call fcn.00416f50
push 0x30
lea edx, [esp + 0x11c]
push ebx
push edx
mov byte [esp + 0x184], 0xa
call fcn.0060fff0
mov eax, dword [esp + 0x10c]
add esp, 0xc
cmp dword [esp + 0x114], ebp
jae 0x53ad2f
lea eax, [esp + 0x100]
push eax
call fcn.00613476
fstp dword [esp + 0x11c]
mov eax, dword [esp + 0xcc]
add esp, 4
cmp dword [esp + 0xdc], ebp
jae 0x53ad56
lea eax, [esp + 0xc8]
push eax
call fcn.00613476
fstp dword [esp + 0x120]
mov eax, dword [esp + 0xb0]
add esp, 4
cmp dword [esp + 0xc0], ebp
jae 0x53ad7d
lea eax, [esp + 0xac]
push eax
call fcn.00613476
fstp dword [esp + 0x124]
mov eax, dword [esp + 0x94]
add esp, 4
cmp dword [esp + 0xa4], ebp
jae 0x53ada4
lea eax, [esp + 0x90]
push eax
call fcn.006131fe
add esp, 4
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0xe4]
cmp dword [esp + 0xf8], ebp
jae 0x53adcb
lea eax, [esp + 0xe4]
push eax
call fcn.006131fe
add esp, 4
lea ecx, [esp + 0x118]
mov dword [esp + 0x140], eax
call fcn.00534920
fldz
mov ecx, dword [esi + 0x10]
fst dword [esp + 0x13c]
sub ecx, dword [esi + 0xc]
fstp dword [esp + 0x144]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 6
jb 0x53ae85
push 5
mov ecx, esi
call fcn.00493ca0
cmp dword [eax + 0x18], ebp
jb 0x53ae28
mov eax, dword [eax + 4]
jmp 0x53ae2b
add eax, 4
push eax
lea ecx, [esp + 0x74]
call fcn.00417080
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebp
jae 0x53ae46
lea eax, [esp + 0x74]
push eax
call fcn.00613476
fstp dword [esp + 0x148]
add esp, 4
cmp dword [esp + 0x88], ebp
jb 0x53ae6c
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00610458
add esp, 4
mov edi, 0xf
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jmp 0x53ae8a
mov edi, 0xf
mov esi, dword [esp + 0x124]
mov ecx, dword [0x713810]
lea edx, [esp + 0x60]
push edx
push esi
call fcn.0051c620
test al, al
jne 0x53aeb6
push esi
push str._CArea::LoadAmbience_Property__d__Load_ERROR
call fcn.00584480
add esp, 8
jmp 0x53aeca
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x118]
push edx
add ecx, 4
call fcn.00537330
cmp dword [esp + 0xf8], ebp
jb 0x53aee3
mov eax, dword [esp + 0xe4]
push eax
call fcn.00610458
add esp, 4
mov byte [esp + 0xe4], bl
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], edi
cmp dword [esp + 0xa4], ebp
jb 0x53af11
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00610458
add esp, 4
mov byte [esp + 0x90], bl
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], edi
cmp dword [esp + 0xc0], ebp
jb 0x53af3f
mov edx, dword [esp + 0xac]
push edx
call fcn.00610458
add esp, 4
mov byte [esp + 0xac], bl
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], edi
cmp dword [esp + 0xdc], ebp
jb 0x53af6d
mov eax, dword [esp + 0xc8]
push eax
call fcn.00610458
add esp, 4
mov byte [esp + 0x178], bl
mov byte [esp + 0xc8], bl
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], edi
cmp dword [esp + 0x114], ebp
jb 0x53afa2
mov ecx, dword [esp + 0x100]
push ecx
call fcn.00610458
add esp, 4
mov byte [esp + 0x100], bl
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], edi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x5c]
jb 0x53a993
lea ecx, [esp + 0x38]
mov dword [esp + 0x178], 0xffffffff
call fcn.004b7140
mov al, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.006108ae
add esp, 0x168
ret 4