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

Disassembly:
sub esp, 0x10
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x188]
call sub.SpeedTreeRT.dll_public:_unsigned_short_int___thiscall_CSpeedTreeRT::GetNumLeafLodLevels_void_const
mov word [ebp + 0x1d4], ax
movzx eax, ax
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059ebd0
mov dword [ebp + 0x1d8], eax
movzx eax, word [ebp + 0x1d4]
push eax
call fcn.0059ebd0
xor ebx, ebx
xor ecx, ecx
add esp, 8
mov dword [ebp + 0x1dc], eax
mov dword [esp + 8], ebx
cmp cx, word [ebp + 0x1d4]
jae 0x53a6cd
push esi
push edi
mov edx, dword [ebp + 0x1dc]
mov byte [ebx + edx], 0
mov eax, dword [ebp + 0x1d8]
lea edi, [ebx*4]
mov dword [edi + eax], 0
mov ecx, dword [ebp + 0x1b0]
movzx eax, word [ecx + 0x84]
cmp ax, 1
jb 0x53a6b7
mov ecx, dword [ebp + 0x1d8]
add ecx, edi
push ecx
mov ecx, dword [0x664aa4]
movzx esi, ax
mov eax, dword [0x684258]
push 2
push ecx
push 0x200
lea ecx, [esi + esi*8]
shl ecx, 4
mov dword [esp + 0x24], 0
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
push ecx
push eax
mov dword [esp + 0x30], esi
call edx
mov eax, dword [ebp + 0x1d8]
mov eax, dword [edi + eax]
mov ecx, dword [eax]
push 0x2800
lea edx, [esp + 0x18]
push edx
push 0
push 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
xor edx, edx
test esi, esi
jbe 0x53a6a6
mov eax, dword [esp + 0x14]
xor esi, esi
add eax, 0x10
mov ecx, dword [ebp + 0x1b0]
mov edi, dword [ecx + 0x90]
mov ebx, dword [edi + esi]
mov dword [eax - 0x10], ebx
mov ebx, dword [edi + esi + 4]
add edi, esi
mov dword [eax - 0xc], ebx
mov edi, dword [edi + 8]
mov dword [eax - 8], edi
mov edi, dword [ecx + 0x9c]
mov edi, dword [edi + edx*4]
mov dword [eax - 4], edi
mov edi, dword [ecx + 0x94]
mov edi, dword [edi + edx*4]
mov ebx, dword [edi]
add ecx, 0x78
mov dword [eax], ebx
mov edi, dword [edi + 4]
mov dword [eax + 4], edi
mov edi, dword [ecx + 0x18]
mov ebx, dword [edi + esi]
mov dword [eax + 8], ebx
mov ebx, dword [edi + esi + 4]
add edi, esi
mov dword [eax + 0xc], ebx
mov edi, dword [edi + 8]
mov dword [eax + 0x10], edi
mov edi, dword [ecx + 0x24]
mov edi, dword [edi + edx*4]
mov dword [eax + 0x14], edi
mov edi, dword [ecx + 0x1c]
mov edi, dword [edi + edx*4]
mov ebx, dword [edi + 8]
mov dword [eax + 0x18], ebx
mov edi, dword [edi + 0xc]
mov dword [eax + 0x1c], edi
mov edi, dword [ecx + 0x18]
mov ebx, dword [edi + esi]
mov dword [eax + 0x20], ebx
mov ebx, dword [edi + esi + 4]
add edi, esi
mov dword [eax + 0x24], ebx
mov edi, dword [edi + 8]
mov dword [eax + 0x28], edi
mov edi, dword [ecx + 0x24]
mov edi, dword [edi + edx*4]
mov dword [eax + 0x2c], edi
mov edi, dword [ecx + 0x1c]
mov edi, dword [edi + edx*4]
mov ebx, dword [edi + 0x10]
mov dword [eax + 0x30], ebx
mov edi, dword [edi + 0x14]
mov dword [eax + 0x34], edi
mov edi, dword [ecx + 0x18]
mov ebx, dword [edi + esi]
add edi, esi
mov dword [eax + 0x38], ebx
mov ebx, dword [edi + 4]
mov dword [eax + 0x3c], ebx
mov edi, dword [edi + 8]
mov dword [eax + 0x40], edi
mov edi, dword [ecx + 0x24]
mov edi, dword [edi + edx*4]
mov dword [eax + 0x44], edi
mov edi, dword [ecx + 0x1c]
mov edi, dword [edi + edx*4]
mov ebx, dword [edi]
mov dword [eax + 0x48], ebx
mov edi, dword [edi + 4]
mov dword [eax + 0x4c], edi
mov edi, dword [ecx + 0x18]
mov ebx, dword [edi + esi]
add edi, esi
mov dword [eax + 0x50], ebx
mov ebx, dword [edi + 4]
mov dword [eax + 0x54], ebx
mov edi, dword [edi + 8]
mov dword [eax + 0x58], edi
mov edi, dword [ecx + 0x24]
mov edi, dword [edi + edx*4]
mov dword [eax + 0x5c], edi
mov edi, dword [ecx + 0x1c]
mov edi, dword [edi + edx*4]
mov ebx, dword [edi + 0x10]
mov dword [eax + 0x60], ebx
mov edi, dword [edi + 0x14]
mov dword [eax + 0x64], edi
mov edi, dword [ecx + 0x18]
mov ebx, dword [edi + esi]
add edi, esi
mov dword [eax + 0x68], ebx
mov ebx, dword [edi + 4]
mov dword [eax + 0x6c], ebx
mov edi, dword [edi + 8]
mov dword [eax + 0x70], edi
mov edi, dword [ecx + 0x24]
mov edi, dword [edi + edx*4]
mov dword [eax + 0x74], edi
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + edx*4]
mov edi, dword [ecx + 0x18]
mov dword [eax + 0x78], edi
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x7c], ecx
inc edx
add eax, 0x90
add esi, 0xc
cmp edx, dword [esp + 0x18]
jb 0x53a551
mov ebx, dword [esp + 0x10]
mov edx, dword [ebp + 0x1d8]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push eax
call edx
movzx eax, word [ebp + 0x1d4]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, eax
jb 0x53a4b0
pop edi
pop esi
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
xor ecx, esp
call fcn.005a09eb
add esp, 0x10
ret