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

Disassembly:
push 0xffffffffffffffff
push 0x665786
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70903c]
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.004b87f0
lea edx, [esp + 0x38]
push edx
xor ebx, ebx
push esi
mov dword [esp + 0x180], ebx
call fcn.00565240
add esp, 8
test al, al
jne 0x53dd51
push esi
push str._CArea::Load_File_Load__s_ERROR
call fcn.00587390
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0x178], 0xffffffff
call fcn.004b75c0
xor al, al
jmp 0x53e550
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.00417040
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.004b7620
mov edi, eax
cmp esi, ebx
je 0x53dda4
cmp esi, dword [edi]
je 0x53dda9
call fcn.00615e0c
cmp ebp, dword [edi + 4]
mov byte [esp + 0x178], bl
sete byte [esp + 0x17]
cmp dword [esp + 0x88], 0x10
jb 0x53ddcf
mov edx, dword [esp + 0x74]
push edx
call fcn.00613a18
add esp, 4
cmp byte [esp + 0x17], bl
je 0x53dde4
mov eax, dword [esp + 0x18]
push eax
push str._CArea::__LoadAmbience_File_Format__s_ERROR_1
jmp 0x53dd2e
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.00417040
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.004b7620
mov edi, eax
cmp esi, ebx
je 0x53de37
cmp esi, dword [edi]
je 0x53de3c
call fcn.00615e0c
cmp ebp, dword [edi + 4]
mov byte [esp + 0x178], bl
sete byte [esp + 0x17]
cmp dword [esp + 0x88], 0x10
jb 0x53de62
mov eax, dword [esp + 0x74]
push eax
call fcn.00613a18
add esp, 4
cmp byte [esp + 0x17], bl
je 0x53de77
mov ecx, dword [esp + 0x18]
push ecx
push str._CArea::__LoadAmbience_File_Format__s_ERROR_2
jmp 0x53dd2e
push str.objectcount
lea ecx, [esp + 0x74]
call fcn.00417170
push ebx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x180], 3
call fcn.004b7490
mov ecx, eax
call fcn.004b6a10
mov edi, 0x10
mov esi, eax
mov byte [esp + 0x178], bl
cmp dword [esp + 0x88], edi
jb 0x53dec7
mov eax, dword [esp + 0x74]
push eax
call fcn.00613a18
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
cmp dword [esi + 0x18], edi
jb 0x53dee7
mov esi, dword [esi + 4]
jmp 0x53deea
add esi, 4
push esi
call fcn.006165e1
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x53e53a
mov ecx, dword [esp + 0x18]
push ecx
push str.object_03d
lea edx, [esp + 0x150]
push 0x21
push edx
call fcn.00616b2e
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 0x53df40
sub eax, edx
push eax
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x24]
call fcn.00417040
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.004b7620
mov edi, eax
cmp esi, ebx
je 0x53df88
cmp esi, dword [edi]
je 0x53df8d
call fcn.00615e0c
cmp ebp, dword [edi + 4]
mov byte [esp + 0x178], bl
sete byte [esp + 0x17]
cmp dword [esp + 0x34], 0x10
jb 0x53dfb0
mov eax, dword [esp + 0x20]
push eax
call fcn.00613a18
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x53e527
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 0x53dfd4
sub eax, edx
push eax
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00417040
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 5
call fcn.004b7490
mov ebp, 0x10
mov esi, eax
mov byte [esp + 0x178], bl
cmp dword [esp + 0x34], ebp
jb 0x53e026
mov eax, dword [esp + 0x20]
push eax
call fcn.00613a18
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 0x53e056
call fcn.00615e0c
mov edi, dword [esi + 0xc]
cmp dword [edi + 0x18], ebp
jb 0x53e063
mov edi, dword [edi + 4]
jmp 0x53e066
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 0x53e084
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x104]
call fcn.00417040
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 0x53e0c6
call fcn.00615e0c
mov eax, dword [esi + 0xc]
add eax, 0x1c
cmp dword [eax + 0x18], ebp
jb 0x53e0d6
mov edi, dword [eax + 4]
jmp 0x53e0d9
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 0x53e0f7
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xcc]
call fcn.00417040
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 0x53e139
call fcn.00615e0c
mov eax, dword [esi + 0xc]
add eax, 0x38
cmp dword [eax + 0x18], ebp
jb 0x53e149
mov edi, dword [eax + 4]
jmp 0x53e14c
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 0x53e170
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xb0]
call fcn.00417040
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 0x53e1b2
call fcn.00615e0c
mov eax, dword [esi + 0xc]
add eax, 0x54
cmp dword [eax + 0x18], ebp
jb 0x53e1c2
mov edi, dword [eax + 4]
jmp 0x53e1c5
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 0x53e1e3
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x94]
call fcn.00417040
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 0x53e225
call fcn.00615e0c
mov eax, dword [esi + 0xc]
add eax, 0x70
cmp dword [eax + 0x18], ebp
jb 0x53e235
mov edi, dword [eax + 4]
jmp 0x53e238
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 0x53e256
sub eax, edx
push eax
push edi
lea ecx, [esp + 0xe8]
call fcn.00417040
push 0x30
lea edx, [esp + 0x11c]
push ebx
push edx
mov byte [esp + 0x184], 0xa
call fcn.006135b0
mov eax, dword [esp + 0x10c]
add esp, 0xc
cmp dword [esp + 0x114], ebp
jae 0x53e29f
lea eax, [esp + 0x100]
push eax
call fcn.00616e3f
fstp dword [esp + 0x11c]
mov eax, dword [esp + 0xcc]
add esp, 4
cmp dword [esp + 0xdc], ebp
jae 0x53e2c6
lea eax, [esp + 0xc8]
push eax
call fcn.00616e3f
fstp dword [esp + 0x120]
mov eax, dword [esp + 0xb0]
add esp, 4
cmp dword [esp + 0xc0], ebp
jae 0x53e2ed
lea eax, [esp + 0xac]
push eax
call fcn.00616e3f
fstp dword [esp + 0x124]
mov eax, dword [esp + 0x94]
add esp, 4
cmp dword [esp + 0xa4], ebp
jae 0x53e314
lea eax, [esp + 0x90]
push eax
call fcn.006165e1
add esp, 4
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0xe4]
cmp dword [esp + 0xf8], ebp
jae 0x53e33b
lea eax, [esp + 0xe4]
push eax
call fcn.006165e1
add esp, 4
lea ecx, [esp + 0x118]
mov dword [esp + 0x140], eax
call fcn.00537ed0
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 0x53e3f5
push 5
mov ecx, esi
call fcn.004b6a10
cmp dword [eax + 0x18], ebp
jb 0x53e398
mov eax, dword [eax + 4]
jmp 0x53e39b
add eax, 4
push eax
lea ecx, [esp + 0x74]
call fcn.00417170
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebp
jae 0x53e3b6
lea eax, [esp + 0x74]
push eax
call fcn.00616e3f
fstp dword [esp + 0x148]
add esp, 4
cmp dword [esp + 0x88], ebp
jb 0x53e3dc
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00613a18
add esp, 4
mov edi, 0xf
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jmp 0x53e3fa
mov edi, 0xf
mov esi, dword [esp + 0x124]
mov ecx, dword [0x718b18]
lea edx, [esp + 0x60]
push edx
push esi
call fcn.0051f9b0
test al, al
jne 0x53e426
push esi
push str._CArea::LoadAmbience_Property__d__Load_ERROR
call fcn.00587390
add esp, 8
jmp 0x53e43a
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x118]
push edx
add ecx, 4
call fcn.0053a8a0
cmp dword [esp + 0xf8], ebp
jb 0x53e453
mov eax, dword [esp + 0xe4]
push eax
call fcn.00613a18
add esp, 4
mov byte [esp + 0xe4], bl
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], edi
cmp dword [esp + 0xa4], ebp
jb 0x53e481
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00613a18
add esp, 4
mov byte [esp + 0x90], bl
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], edi
cmp dword [esp + 0xc0], ebp
jb 0x53e4af
mov edx, dword [esp + 0xac]
push edx
call fcn.00613a18
add esp, 4
mov byte [esp + 0xac], bl
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], edi
cmp dword [esp + 0xdc], ebp
jb 0x53e4dd
mov eax, dword [esp + 0xc8]
push eax
call fcn.00613a18
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 0x53e512
mov ecx, dword [esp + 0x100]
push ecx
call fcn.00613a18
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 0x53df03
lea ecx, [esp + 0x38]
mov dword [esp + 0x178], 0xffffffff
call fcn.004b75c0
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.00613e6e
add esp, 0x168
ret 4