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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x160cd60]
mov ecx, dword [eax + 0x3f0]
push ebx
push ebp
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
je 0x4eaedf
call fcn.004c5480
mov ecx, dword [0x160cd60]
mov eax, dword [ecx + 0x3f0]
mov edx, dword [0x15f06e0]
mov ecx, dword [edx + 0x20]
shl eax, 2
cmp ecx, eax
mov dword [esp + 0x48], eax
jge 0x4ea161
fild dword [esp + 0x48]
push ecx
fstp dword [esp]
jmp 0x4ea16e
cmp ecx, 0xffff
jle 0x4ea17b
push 0x477fff00
push str.ter_maxtris
call fcn.0045de80
add esp, 8
mov eax, dword [0x15f06e0]
mov ecx, dword [eax + 0x20]
push ecx
push str.Using_ter_maxtris___d_n
call fcn.0045b480
mov eax, dword [0x15f06e0]
mov edx, dword [eax + 0x20]
lea ecx, [edx + edx + 1]
mov dword [0xd98654], ecx
mov eax, dword [eax + 0x20]
inc eax
mov dword [0xd98670], eax
imul eax, eax, 0x38
lea esi, [ecx + ecx*4]
shl esi, 3
mov edi, eax
push esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
call dword [0x160cc74]
push edi
mov dword [0xd9895c], eax
call dword [0x160cc74]
mov ecx, dword [0xd98654]
mov edx, dword [0xd98670]
mov dword [0xd98960], eax
lea eax, [ecx - 1]
add esp, 0x10
mov ebp, 1
mov dword [0x15f0698], eax
dec edx
xor eax, eax
cmp ecx, ebx
mov dword [0x15f0690], ebp
mov dword [0x15f06b0], ebp
mov dword [0x15f06b8], edx
jle 0x4ea23f
xor ecx, ecx
nop
lea esp, [esp]
mov ebp, dword [0xd9895c]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x24], dx
mov ebp, dword [0xd9895c]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x26], dx
mov edx, dword [0xd98654]
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x4ea210
mov ebp, 1
mov ecx, dword [0xd9895c]
mov word [ecx + 0x24], bx
lea edx, [eax + eax*4]
mov eax, dword [0xd9895c]
mov word [eax + edx*8 - 2], bx
mov ecx, dword [0xd98670]
xor eax, eax
cmp ecx, ebx
jle 0x4ea293
xor ecx, ecx
mov ebp, dword [0xd98960]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x36], dx
mov ebp, dword [0xd98960]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x34], dx
mov edx, dword [0xd98670]
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x4ea264
mov ebp, 1
mov ecx, dword [0xd98960]
imul eax, eax, 0x38
mov word [ecx + 0x36], bx
mov edx, dword [0xd98960]
mov word [eax + edx - 4], bx
mov ecx, dword [0x160cd60]
mov eax, dword [ecx + 0x3f4]
xor edx, edx
cmp dword [ecx + 0x3f0], ebx
jle 0x4ea2ed
add eax, 8
mov word [eax - 2], bx
mov word [eax], bx
mov word [eax + 2], bx
mov word [eax - 4], bx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov ecx, dword [0x160cd60]
add eax, 0x2e0
inc edx
cmp edx, dword [ecx + 0x3f0]
jl 0x4ea2c4
mov ecx, dword [ecx + 0x3f0]
mov eax, ecx
imul eax, eax, 0x2e0
lea edx, [eax + edi]
add edx, esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
sub esp, 8
fild qword [esp + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
fmul qword [0x54eec0]
fstp qword [esp]
push ecx
fild qword [esp + 0x64]
sub esp, 0x18
fmul qword [0x54eec0]
fstp qword [esp + 0x10]
fild dword [esp + 0x6c]
fmul qword [0x54eec0]
fstp qword [esp + 8]
fild dword [esp + 0x68]
fmul qword [0x54eec0]
fstp qword [esp]
push str.Terrain:__.2f_MB_tris___.2f_MB_verts___.2f_MB_in__d_patches___.2f_MB_total_n
call fcn.0045b480
mov eax, dword [0x160cd60]
mov ecx, dword [eax + 0x3f0]
mov esi, dword [eax + 0x3f4]
add esp, 0x28
cmp ecx, ebp
mov dword [esp + 0x48], ebp
jl 0x4eaedf
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x60]
fld dword [esp + 0x14]
mov dword [esp + 0x1c], edx
fcomp dword [esp + 0x1c]
mov edx, dword [esi + 0x68]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x2c], eax
fnstsw ax
mov dword [esp + 0x24], ecx
test ah, 5
mov ecx, dword [esi + 0x70]
mov dword [esi], 0xc
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov word [esi + 6], bx
mov word [esi + 8], bx
mov word [esi + 4], bx
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], ecx
jp 0x4ea3dc
fld dword [esp + 0x14]
jmp 0x4ea3e0
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4ea3f5
fld dword [esp + 0x24]
jmp 0x4ea3f9
fld dword [esp + 0x2c]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4ea421
fld dword [esp + 0x14]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x4ea41b
fld dword [esp + 0x14]
jmp 0x4ea43a
fld dword [esp + 0x1c]
jmp 0x4ea43a
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4ea436
fld dword [esp + 0x24]
jmp 0x4ea43a
fld dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
call fcn.00532e83
fstp dword [esp + 0x44]
add esp, 8
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4ea461
fld dword [esp + 0x18]
jmp 0x4ea465
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x4ea47a
fld dword [esp + 0x28]
jmp 0x4ea47e
fld dword [esp + 0x40]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4ea4a6
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4ea4a0
fld dword [esp + 0x18]
jmp 0x4ea4bf
fld dword [esp + 0x20]
jmp 0x4ea4bf
fld dword [esp + 0x28]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x4ea4bb
fld dword [esp + 0x28]
jmp 0x4ea4bf
fld dword [esp + 0x40]
sub esp, 8
fstp qword [esp]
call fcn.00532e83
fld dword [esp + 0x1c]
mov ecx, dword [0x15f0690]
fsub dword [esp + 0x44]
mov edi, dword [0xd9895c]
lea eax, [ecx + ecx*4]
shl eax, 3
fstp dword [esp + 0x1c]
movzx edx, word [eax + edi + 0x26]
fld dword [esp + 0x24]
mov dword [0x15f0690], edx
fsub dword [esp + 0x44]
lea edx, [edx + edx*4]
mov word [edi + edx*8 + 0x24], bx
mov dx, word [esi + 8]
fstp dword [esp + 0x24]
mov edi, dword [0xd9895c]
fld dword [esp + 0x2c]
mov word [eax + edi + 0x24], dx
fsub dword [esp + 0x44]
mov edx, dword [0xd9895c]
mov word [eax + edx + 0x26], bx
movzx edx, word [esi + 8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
fsub dword [esp + 0x44]
mov edi, dword [0xd9895c]
lea edx, [edx + edx*4]
mov word [edi + edx*8 + 0x26], cx
fstp dword [esp + 0x34]
add esp, 8
cmp word [esi + 6], bx
fld dword [esp + 0x18]
fsub st(1)
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], eax
mov word [esi + 8], cx
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fsub st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x28]
fsub st(1)
fstp dword [esp + 0x28]
fsubr dword [esp + 0x40]
jne 0x4ea586
mov word [esi + 6], cx
inc dword [esi + 0x10]
mov ebp, dword [0x15f0698]
mov ecx, dword [0xd9895c]
dec ebp
mov dword [0x15f0698], ebp
mov byte [eax + ecx + 0x17], 4
mov edx, dword [0xd9895c]
mov dword [eax + edx + 8], ebx
mov dword [esi + 0x48], ebx
mov ecx, dword [0x15f0690]
mov edi, dword [0xd9895c]
lea eax, [ecx + ecx*4]
shl eax, 3
movzx edx, word [eax + edi + 0x26]
mov dword [0x15f0690], edx
lea edx, [edx + edx*4]
mov word [edi + edx*8 + 0x24], bx
mov dx, word [esi + 8]
mov edi, dword [0xd9895c]
mov word [eax + edi + 0x24], dx
mov edx, dword [0xd9895c]
mov word [eax + edx + 0x26], bx
movzx edx, word [esi + 8]
mov edi, dword [0xd9895c]
lea edx, [edx + edx*4]
mov word [edi + edx*8 + 0x26], cx
cmp word [esi + 6], bx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov word [esi + 8], cx
jne 0x4ea615
mov word [esi + 6], cx
inc dword [esi + 0x10]
dec dword [0x15f0698]
mov ecx, dword [0xd9895c]
mov byte [eax + ecx + 0x17], 4
mov edx, dword [0xd9895c]
mov dword [eax + edx + 8], ebx
mov dword [esi + 0x48], ebx
mov ecx, dword [0x15f06b0]
mov edi, dword [0xd98960]
mov eax, ecx
imul eax, eax, 0x38
movzx edx, word [eax + edi + 0x34]
mov dword [0x15f06b0], edx
imul edx, edx, 0x38
mov word [edx + edi + 0x36], bx
mov edx, dword [0xd98960]
mov word [eax + edx + 0x36], bx
mov dx, word [esi + 4]
mov edi, dword [0xd98960]
mov word [eax + edi + 0x34], dx
movzx edx, word [esi + 4]
mov edi, dword [0xd98960]
imul edx, edx, 0x38
mov word [edx + edi + 0x36], cx
mov ebp, dword [esi + 0xc]
mov word [esi + 4], cx
inc ebp
mov dword [esi + 0xc], ebp
dec dword [0x15f06b8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0xd98960]
mov word [eax + ecx + 0x2c], bx
mov edx, dword [0xd98960]
mov dword [eax + edx + 0x28], ebx
mov edx, dword [0x15f06b0]
mov ebp, dword [0xd98960]
mov ecx, edx
imul ecx, ecx, 0x38
movzx edi, word [ecx + ebp + 0x34]
mov dword [0x15f06b0], edi
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], bx
mov edi, dword [0xd98960]
mov word [ecx + edi + 0x36], bx
mov di, word [esi + 4]
mov ebp, dword [0xd98960]
mov word [ecx + ebp + 0x34], di
movzx edi, word [esi + 4]
mov ebp, dword [0xd98960]
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], dx
mov word [esi + 4], dx
mov dword [esp + 0x38], edx
inc dword [esi + 0xc]
mov ebp, dword [0x15f06b8]
mov edx, dword [0xd98960]
dec ebp
mov dword [0x15f06b8], ebp
mov word [ecx + edx + 0x2c], bx
mov edx, dword [0xd98960]
mov dword [ecx + edx + 0x28], ebx
mov edx, dword [0x15f06b0]
mov ebp, dword [0xd98960]
mov dword [esp + 0x34], edx
imul edx, edx, 0x38
movzx edi, word [edx + ebp + 0x34]
mov dword [0x15f06b0], edi
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], bx
mov edi, dword [0xd98960]
mov word [edx + edi + 0x36], bx
mov di, word [esi + 4]
mov ebx, dword [0xd98960]
mov word [edx + ebx + 0x34], di
movzx ebx, word [esi + 4]
mov ebp, dword [0xd98960]
imul ebx, ebx, 0x38
mov edi, dword [esp + 0x34]
mov word [ebx + ebp + 0x36], di
mov word [esi + 4], di
inc dword [esi + 0xc]
mov ebp, dword [0x15f06b8]
mov ebx, dword [0xd98960]
dec ebp
mov dword [0x15f06b8], ebp
xor edi, edi
mov word [edx + ebx + 0x2c], di
mov ebx, dword [0xd98960]
mov dword [edx + ebx + 0x28], edi
mov edi, dword [0x15f06b0]
mov ebp, dword [0xd98960]
mov dword [esp + 0x30], edi
imul edi, edi, 0x38
movzx ebx, word [edi + ebp + 0x34]
mov dword [0x15f06b0], ebx
imul ebx, ebx, 0x38
mov word [ebx + ebp + 0x36], 0
mov ebx, dword [0xd98960]
mov word [edi + ebx + 0x36], 0
mov bx, word [esi + 4]
mov ebp, dword [0xd98960]
mov word [edi + ebp + 0x34], bx
movzx ebx, word [esi + 4]
mov ebp, dword [0xd98960]
imul ebx, ebx, 0x38
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x30]
mov word [ebx + ebp + 0x36], di
mov ebx, dword [esi + 0xc]
mov word [esi + 4], di
inc ebx
mov dword [esi + 0xc], ebx
mov edi, dword [0x15f06b8]
mov ebp, dword [0xd98960]
xor ebx, ebx
dec edi
mov dword [0x15f06b8], edi
mov edi, dword [esp + 0x44]
mov word [edi + ebp + 0x2c], bx
mov ebp, dword [0xd98960]
mov dword [edi + ebp + 0x28], ebx
mov ebx, dword [esi + 0x74]
mov ebp, dword [0xd98960]
mov dword [eax + ebp], ebx
mov ebx, dword [esi + 0x78]
mov ebp, dword [0xd98960]
mov dword [eax + ebp + 4], ebx
movzx ebx, byte [esi + 0x28c]
shl ebx, 1
mov dword [esp + 0x44], ebx
mov ebx, dword [0xd98960]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [eax + ebx + 8]
mov ebx, dword [0xd98960]
mov ebp, dword [eax + ebx + 8]
fld dword [esp + 0x14]
mov dword [eax + ebx + 0x20], ebp
mov ebp, dword [0xd98960]
lea ebx, [esi + 0x28c]
mov dword [eax + ebp + 0x30], ebx
mov ebx, dword [0xd98960]
fstp dword [eax + ebx + 0xc]
mov ebx, dword [0xd98960]
fld dword [esp + 0x18]
fstp dword [eax + ebx + 0x10]
mov ebx, dword [esi + 0x4c]
mov ebp, dword [0xd98960]
mov dword [eax + ebp + 0x14], ebx
mov ebx, dword [esi + 0x50]
mov ebp, dword [0xd98960]
mov dword [eax + ebp + 0x18], ebx
mov ebp, dword [0xd98960]
xor ebx, ebx
mov dword [eax + ebp + 0x1c], ebx
mov ebp, dword [0xd98960]
mov word [eax + ebp + 0x2c], 4
mov eax, dword [esi + 0x74]
mov ebp, dword [0xd98960]
mov dword [ecx + ebp], eax
fld dword [esi + 0x78]
fadd dword [0x54ed28]
mov eax, dword [0xd98960]
fstp dword [ecx + eax + 4]
movzx eax, byte [esi + 0x2d4]
shl eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [0xd98960]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [ecx + eax + 8]
mov eax, dword [0xd98960]
mov ebp, dword [ecx + eax + 8]
fld dword [esp + 0x1c]
mov dword [ecx + eax + 0x20], ebp
mov ebp, dword [0xd98960]
lea eax, [esi + 0x2d4]
mov dword [ecx + ebp + 0x30], eax
mov eax, dword [0xd98960]
fstp dword [ecx + eax + 0xc]
mov eax, dword [0xd98960]
fld dword [esp + 0x20]
fstp dword [ecx + eax + 0x10]
mov eax, dword [esi + 0x4c]
mov ebp, dword [0xd98960]
mov dword [ecx + ebp + 0x14], eax
mov eax, dword [esi + 0x14]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
mov eax, dword [0xd98960]
fmul dword [0x54ec98]
fadd dword [esi + 0x50]
fstp dword [ecx + eax + 0x18]
mov eax, dword [0xd98960]
mov dword [ecx + eax + 0x1c], ebx
mov eax, dword [0xd98960]
mov word [ecx + eax + 0x2c], 4
fld dword [esi + 0x74]
fadd dword [0x54ed28]
mov ecx, dword [0xd98960]
fstp dword [edx + ecx]
mov eax, dword [esi + 0x78]
mov ecx, dword [0xd98960]
mov dword [edx + ecx + 4], eax
movzx ecx, byte [esi + 0x294]
lea eax, [esi + 0x294]
shl ecx, 1
mov dword [esp + 0x44], ecx
mov ecx, dword [0xd98960]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [edx + ecx + 8]
mov ecx, dword [0xd98960]
mov ebp, dword [edx + ecx + 8]
fld dword [esp + 0x24]
mov dword [edx + ecx + 0x20], ebp
mov ecx, dword [0xd98960]
mov dword [edx + ecx + 0x30], eax
mov eax, dword [0xd98960]
fstp dword [edx + eax + 0xc]
mov ecx, dword [0xd98960]
fld dword [esp + 0x28]
fstp dword [edx + ecx + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xd98960]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x54ec98]
fadd dword [esi + 0x4c]
fstp dword [edx + ecx + 0x14]
mov eax, dword [esi + 0x50]
mov ecx, dword [0xd98960]
mov dword [edx + ecx + 0x18], eax
mov eax, dword [0xd98960]
mov dword [edx + eax + 0x1c], ebx
mov ecx, dword [0xd98960]
mov ebp, 4
mov word [edx + ecx + 0x2c], bp
fld dword [esi + 0x74]
fadd dword [0x54ed28]
mov edx, dword [0xd98960]
fstp dword [edi + edx]
mov eax, dword [0xd98960]
fld dword [esi + 0x78]
fadd dword [0x54ed28]
fstp dword [edi + eax + 4]
movzx ecx, byte [esi + 0x2dc]
mov edx, dword [0xd98960]
shl ecx, 1
lea eax, [esi + 0x2dc]
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [edi + edx + 8]
mov ecx, dword [0xd98960]
mov edx, dword [edi + ecx + 8]
fld dword [esp + 0x2c]
mov dword [edi + ecx + 0x20], edx
mov ecx, dword [0xd98960]
mov dword [edi + ecx + 0x30], eax
mov edx, dword [0xd98960]
fstp dword [edi + edx + 0xc]
mov eax, dword [0xd98960]
fstp dword [edi + eax + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [0xd98960]
dec ecx
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fmul dword [0x54ec98]
fadd dword [esi + 0x4c]
fstp dword [edi + edx + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xd98960]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x54ec98]
fadd dword [esi + 0x50]
fstp dword [edi + ecx + 0x18]
mov edx, dword [0xd98960]
mov dword [edi + edx + 0x1c], ebx
mov eax, dword [0xd98960]
mov edx, dword [esp + 0x4c]
mov word [edi + eax + 0x2c], bp
mov ecx, dword [0xd9895c]
add ecx, edx
lea edi, [esi + 0x94]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], edi
mov word [ecx + 0x14], 1
mov byte [ecx + 0x16], bl
mov eax, dword [edi]
mov dword [esp + 0x44], eax
and al, 0xf0
mov byte [esp + 0x44], al
fld dword [esp + 0x44]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 0x44
jp 0x4eab5c
test byte [edi], 8
je 0x4eab7f
mov al, byte [edi]
test al, 8
je 0x4eab66
mov al, 3
jmp 0x4eab81
test byte [ecx + 0x17], 4
je 0x4eab7f
test al, 4
jne 0x4eab7f
mov edx, dword [0x15f06cc]
cmp dword [edx + 0x20], ebx
jle 0x4eab7f
xor al, al
jmp 0x4eab81
mov al, 2
mov dl, byte [ecx + 0x17]
or dl, al
mov ax, word [esp + 0x50]
mov byte [ecx + 0x17], dl
mov word [ecx + 0x1c], ax
mov al, byte [esi + 0x2dd]
mov dl, 0x80
test dl, al
je 0x4eac24
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4eabb3
lea eax, [eax + eax + 2]
jmp 0x4eabb5
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edi, dword [0x160cd60]
mov edi, dword [edi + 0x3f4]
jl 0x4eabec
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
test byte [eax + edi + 0x2dd], dl
je 0x4eabe8
lea eax, [ebp + 1]
jmp 0x4eabee
mov eax, ebp
jmp 0x4eabee
xor eax, eax
mov dx, word [esp + 0x38]
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x34]
je 0x4eac1a
mov word [ecx], dx
mov dx, word [esp + 0x30]
mov word [ecx + 2], ax
mov word [ecx + 4], dx
jmp 0x4eaca9
mov word [ecx], ax
mov ax, word [esp + 0x30]
jmp 0x4eaca1
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edi, dword [0x160cd60]
mov ebp, dword [edi + 0x3f4]
jl 0x4eac57
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
test byte [eax + ebp + 0x2dd], dl
je 0x4eac52
mov eax, edi
jmp 0x4eac59
lea eax, [edi + 1]
jmp 0x4eac59
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4eac6e
lea eax, [eax + eax + 2]
jmp 0x4eac70
xor eax, eax
mov dx, word [esp + 0x3c]
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x30]
je 0x4eac99
mov word [ecx], dx
mov dx, word [esp + 0x38]
mov word [ecx + 2], ax
mov word [ecx + 4], dx
jmp 0x4eaca9
mov word [ecx], ax
mov ax, word [esp + 0x38]
mov word [ecx + 2], dx
mov word [ecx + 4], ax
xor eax, eax
mov dword [esp + 0x44], eax
nop
movzx eax, word [ecx + eax*2]
mov edx, dword [0xd98960]
imul eax, eax, 0x38
mov edi, dword [ecx + 0xc]
mov ebp, dword [eax + edx + 0x30]
add eax, edx
lea edx, [edi + 0x28c]
cmp ebp, edx
jb 0x4eacda
add edi, 0x2dd
cmp ebp, edi
jb 0x4eacdd
mov dword [eax + 0x30], edx
mov eax, dword [esp + 0x44]
inc eax
cmp eax, 3
mov dword [esp + 0x44], eax
jl 0x4eacb0
mov ecx, dword [0xd9895c]
mov edx, dword [esp + 0x54]
add ecx, edx
lea edi, [esi + 0x190]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], edi
mov word [ecx + 0x14], 1
mov byte [ecx + 0x16], bl
mov eax, dword [edi]
mov dword [esp + 0x44], eax
and al, 0xf0
mov byte [esp + 0x44], al
fld dword [esp + 0x44]
fcomp dword [0x54e4d0]
fnstsw ax
test ah, 0x44
jp 0x4ead2e
test byte [edi], 8
je 0x4ead51
mov al, byte [edi]
test al, 8
je 0x4ead38
mov al, 3
jmp 0x4ead53
test byte [ecx + 0x17], 4
je 0x4ead51
test al, 4
jne 0x4ead51
mov edx, dword [0x15f06cc]
cmp dword [edx + 0x20], ebx
jle 0x4ead51
xor al, al
jmp 0x4ead53
mov al, 2
mov dl, byte [ecx + 0x17]
or dl, al
mov ax, word [esp + 0x58]
mov byte [ecx + 0x17], dl
mov word [ecx + 0x1c], ax
mov al, byte [esi + 0x2dd]
mov dl, 0x80
test dl, al
je 0x4eadf6
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4ead85
lea eax, [eax + eax + 1]
jmp 0x4ead87
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edi, dword [0x160cd60]
mov edi, dword [edi + 0x3f4]
jl 0x4eadbe
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
test byte [eax + edi + 0x2dd], dl
je 0x4eadb9
mov eax, ebp
jmp 0x4eadc0
lea eax, [ebp + 1]
jmp 0x4eadc0
xor eax, eax
mov dx, word [esp + 0x34]
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x38]
je 0x4eadec
mov word [ecx], dx
mov dx, word [esp + 0x3c]
mov word [ecx + 2], ax
mov word [ecx + 4], dx
jmp 0x4eae7b
mov word [ecx], ax
mov ax, word [esp + 0x3c]
jmp 0x4eae73
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edi, dword [0x160cd60]
mov ebp, dword [edi + 0x3f4]
jl 0x4eae29
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
test byte [eax + ebp + 0x2dd], dl
je 0x4eae25
lea eax, [edi + 1]
jmp 0x4eae2b
mov eax, edi
jmp 0x4eae2b
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4eae40
lea eax, [eax + eax + 1]
jmp 0x4eae42
xor eax, eax
mov dx, word [esp + 0x30]
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x3c]
je 0x4eae6b
mov word [ecx], dx
mov dx, word [esp + 0x34]
mov word [ecx + 2], ax
mov word [ecx + 4], dx
jmp 0x4eae7b
mov word [ecx], ax
mov ax, word [esp + 0x34]
mov word [ecx + 2], dx
mov word [ecx + 4], ax
xor eax, eax
mov dword [esp + 0x44], eax
movzx eax, word [ecx + eax*2]
mov edx, dword [0xd98960]
imul eax, eax, 0x38
mov ebp, dword [eax + edx + 0x30]
add eax, edx
mov edx, dword [ecx + 0xc]
lea edi, [edx + 0x28c]
cmp ebp, edi
jb 0x4eaeab
add edx, 0x2dd
cmp ebp, edx
jb 0x4eaeae
mov dword [eax + 0x30], edi
mov eax, dword [esp + 0x44]
inc eax
cmp eax, 3
mov dword [esp + 0x44], eax
jl 0x4eae81
mov eax, dword [esp + 0x48]
mov ecx, dword [0x160cd60]
mov edx, dword [ecx + 0x3f0]
inc eax
add esi, 0x2e0
cmp eax, edx
mov dword [esp + 0x48], eax
jle 0x4ea377
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret