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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x1313d80]
mov ecx, dword [eax + 0x3f0]
push ebx
push ebp
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
je 0x4d5fea
call fcn.004b0fc0
mov ecx, dword [0x1313d80]
mov eax, dword [ecx + 0x3f0]
mov edx, dword [0x12f7700]
mov ecx, dword [edx + 0x20]
shl eax, 2
cmp ecx, eax
mov dword [esp + 0x48], eax
jge 0x4d52f1
fild dword [esp + 0x48]
push ecx
fstp dword [esp]
jmp 0x4d52fe
cmp ecx, 0xffff
jle 0x4d530b
push 0x477fff00
push str.ter_maxtris
call fcn.0044fb90
add esp, 8
mov eax, dword [0x12f7700]
mov ecx, dword [eax + 0x20]
push ecx
push str.Using_ter_maxtris___d_n
call fcn.0044cf80
mov eax, dword [0x12f7700]
mov edx, dword [eax + 0x20]
lea ecx, [edx + edx + 1]
mov dword [0xbf3164], ecx
mov eax, dword [eax + 0x20]
inc eax
mov dword [0xbf3180], 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 [0x1313c94]
push edi
mov dword [0xbf346c], eax
call dword [0x1313c94]
mov ecx, dword [0xbf3164]
mov edx, dword [0xbf3180]
mov dword [0xbf3470], eax
lea eax, [ecx - 1]
add esp, 0x10
mov ebp, 1
mov dword [0x12f76b8], eax
dec edx
xor eax, eax
cmp ecx, ebx
mov dword [0x12f76b0], ebp
mov dword [0x12f76d0], ebp
mov dword [0x12f76d8], edx
jle 0x4d53cf
xor ecx, ecx
nop
lea esp, [esp]
mov ebp, dword [0xbf346c]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x24], dx
mov ebp, dword [0xbf346c]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x26], dx
mov edx, dword [0xbf3164]
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x4d53a0
mov ebp, 1
mov ecx, dword [0xbf346c]
mov word [ecx + 0x24], bx
lea edx, [eax + eax*4]
mov eax, dword [0xbf346c]
mov word [eax + edx*8 - 2], bx
mov ecx, dword [0xbf3180]
xor eax, eax
cmp ecx, ebx
jle 0x4d5423
xor ecx, ecx
mov ebp, dword [0xbf3470]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x36], dx
mov ebp, dword [0xbf3470]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x34], dx
mov edx, dword [0xbf3180]
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x4d53f4
mov ebp, 1
mov ecx, dword [0xbf3470]
imul eax, eax, 0x38
mov word [ecx + 0x36], bx
mov edx, dword [0xbf3470]
mov word [eax + edx - 4], bx
mov ecx, dword [0x1313d80]
mov eax, dword [ecx + 0x3f4]
xor edx, edx
cmp dword [ecx + 0x3f0], ebx
jle 0x4d547d
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 [0x1313d80]
add eax, 0x2e0
inc edx
cmp edx, dword [ecx + 0x3f0]
jl 0x4d5454
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 [0x535bf0]
fstp qword [esp]
push ecx
fild qword [esp + 0x64]
sub esp, 0x18
fmul qword [0x535bf0]
fstp qword [esp + 0x10]
fild dword [esp + 0x6c]
fmul qword [0x535bf0]
fstp qword [esp + 8]
fild dword [esp + 0x68]
fmul qword [0x535bf0]
fstp qword [esp]
push str.Terrain:__.2f_MB_tris___.2f_MB_verts___.2f_MB_in__d_patches___.2f_MB_total_n
call fcn.0044cf80
mov eax, dword [0x1313d80]
mov ecx, dword [eax + 0x3f0]
mov esi, dword [eax + 0x3f4]
add esp, 0x28
cmp ecx, ebp
mov dword [esp + 0x48], ebp
jl 0x4d5fea
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 + 0x3c], ecx
jp 0x4d556c
fld dword [esp + 0x14]
jmp 0x4d5570
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4d5585
fld dword [esp + 0x24]
jmp 0x4d5589
fld dword [esp + 0x2c]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4d55b1
fld dword [esp + 0x14]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x4d55ab
fld dword [esp + 0x14]
jmp 0x4d55ca
fld dword [esp + 0x1c]
jmp 0x4d55ca
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4d55c6
fld dword [esp + 0x24]
jmp 0x4d55ca
fld dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
call fcn.0051a983
fstp dword [esp + 0x40]
add esp, 8
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4d55f1
fld dword [esp + 0x18]
jmp 0x4d55f5
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x4d560a
fld dword [esp + 0x28]
jmp 0x4d560e
fld dword [esp + 0x3c]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4d5636
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4d5630
fld dword [esp + 0x18]
jmp 0x4d564f
fld dword [esp + 0x20]
jmp 0x4d564f
fld dword [esp + 0x28]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x4d564b
fld dword [esp + 0x28]
jmp 0x4d564f
fld dword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
call fcn.0051a983
fld dword [esp + 0x1c]
mov ecx, dword [0x12f76b0]
fsub dword [esp + 0x40]
mov edi, dword [0xbf346c]
lea eax, [ecx + ecx*4]
shl eax, 3
fstp dword [esp + 0x1c]
movzx edx, word [eax + edi + 0x26]
fld dword [esp + 0x24]
mov dword [0x12f76b0], edx
fsub dword [esp + 0x40]
lea edx, [edx + edx*4]
mov word [edi + edx*8 + 0x24], bx
mov dx, word [esi + 8]
fstp dword [esp + 0x24]
mov edi, dword [0xbf346c]
fld dword [esp + 0x2c]
mov word [eax + edi + 0x24], dx
fsub dword [esp + 0x40]
mov edx, dword [0xbf346c]
mov word [eax + edx + 0x26], bx
movzx edx, word [esi + 8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
fsub dword [esp + 0x40]
mov edi, dword [0xbf346c]
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 + 0x3c]
jne 0x4d5716
mov word [esi + 6], cx
inc dword [esi + 0x10]
mov ebp, dword [0x12f76b8]
mov ecx, dword [0xbf346c]
dec ebp
mov dword [0x12f76b8], ebp
mov byte [eax + ecx + 0x17], 4
mov edx, dword [0xbf346c]
mov dword [eax + edx + 8], ebx
mov dword [esi + 0x48], ebx
mov ecx, dword [0x12f76b0]
mov edi, dword [0xbf346c]
lea eax, [ecx + ecx*4]
shl eax, 3
movzx edx, word [eax + edi + 0x26]
mov dword [0x12f76b0], edx
lea edx, [edx + edx*4]
mov word [edi + edx*8 + 0x24], bx
mov dx, word [esi + 8]
mov edi, dword [0xbf346c]
mov word [eax + edi + 0x24], dx
mov edx, dword [0xbf346c]
mov word [eax + edx + 0x26], bx
movzx edx, word [esi + 8]
mov edi, dword [0xbf346c]
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 0x4d57a5
mov word [esi + 6], cx
inc dword [esi + 0x10]
dec dword [0x12f76b8]
mov ecx, dword [0xbf346c]
mov byte [eax + ecx + 0x17], 4
mov edx, dword [0xbf346c]
mov dword [eax + edx + 8], ebx
mov dword [esi + 0x48], ebx
mov ecx, dword [0x12f76d0]
mov edi, dword [0xbf3470]
mov eax, ecx
imul eax, eax, 0x38
movzx edx, word [eax + edi + 0x34]
mov dword [0x12f76d0], edx
imul edx, edx, 0x38
mov word [edx + edi + 0x36], bx
mov edx, dword [0xbf3470]
mov word [eax + edx + 0x36], bx
mov dx, word [esi + 4]
mov edi, dword [0xbf3470]
mov word [eax + edi + 0x34], dx
movzx edx, word [esi + 4]
mov edi, dword [0xbf3470]
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 [0x12f76d8]
mov dword [esp + 0x38], ecx
mov ecx, dword [0xbf3470]
mov word [eax + ecx + 0x2c], bx
mov edx, dword [0xbf3470]
mov dword [eax + edx + 0x28], ebx
mov edx, dword [0x12f76d0]
mov ebp, dword [0xbf3470]
mov ecx, edx
imul ecx, ecx, 0x38
movzx edi, word [ecx + ebp + 0x34]
mov dword [0x12f76d0], edi
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], bx
mov edi, dword [0xbf3470]
mov word [ecx + edi + 0x36], bx
mov di, word [esi + 4]
mov ebp, dword [0xbf3470]
mov word [ecx + ebp + 0x34], di
movzx edi, word [esi + 4]
mov ebp, dword [0xbf3470]
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], dx
mov word [esi + 4], dx
mov dword [esp + 0x40], edx
inc dword [esi + 0xc]
mov ebp, dword [0x12f76d8]
mov edx, dword [0xbf3470]
dec ebp
mov dword [0x12f76d8], ebp
mov word [ecx + edx + 0x2c], bx
mov edx, dword [0xbf3470]
mov dword [ecx + edx + 0x28], ebx
mov edx, dword [0x12f76d0]
mov ebp, dword [0xbf3470]
mov dword [esp + 0x34], edx
imul edx, edx, 0x38
movzx edi, word [edx + ebp + 0x34]
mov dword [0x12f76d0], edi
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], bx
mov edi, dword [0xbf3470]
mov word [edx + edi + 0x36], bx
mov di, word [esi + 4]
mov ebx, dword [0xbf3470]
mov word [edx + ebx + 0x34], di
movzx ebx, word [esi + 4]
mov ebp, dword [0xbf3470]
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 [0x12f76d8]
mov ebx, dword [0xbf3470]
dec ebp
mov dword [0x12f76d8], ebp
xor edi, edi
mov word [edx + ebx + 0x2c], di
mov ebx, dword [0xbf3470]
mov dword [edx + ebx + 0x28], edi
mov edi, dword [0x12f76d0]
mov ebp, dword [0xbf3470]
mov dword [esp + 0x30], edi
imul edi, edi, 0x38
movzx ebx, word [edi + ebp + 0x34]
mov dword [0x12f76d0], ebx
imul ebx, ebx, 0x38
mov word [ebx + ebp + 0x36], 0
mov ebx, dword [0xbf3470]
mov word [edi + ebx + 0x36], 0
mov bx, word [esi + 4]
mov ebp, dword [0xbf3470]
mov word [edi + ebp + 0x34], bx
movzx ebx, word [esi + 4]
mov ebp, dword [0xbf3470]
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 [0x12f76d8]
mov ebp, dword [0xbf3470]
xor ebx, ebx
dec edi
mov dword [0x12f76d8], edi
mov edi, dword [esp + 0x44]
mov word [edi + ebp + 0x2c], bx
mov ebp, dword [0xbf3470]
mov dword [edi + ebp + 0x28], ebx
mov ebx, dword [esi + 0x74]
mov ebp, dword [0xbf3470]
mov dword [eax + ebp], ebx
mov ebx, dword [esi + 0x78]
mov ebp, dword [0xbf3470]
mov dword [eax + ebp + 4], ebx
movzx ebx, byte [esi + 0x28c]
shl ebx, 1
mov dword [esp + 0x44], ebx
mov ebx, dword [0xbf3470]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [eax + ebx + 8]
mov ebx, dword [0xbf3470]
mov ebp, dword [eax + ebx + 8]
fld dword [esp + 0x14]
mov dword [eax + ebx + 0x20], ebp
mov ebp, dword [0xbf3470]
lea ebx, [esi + 0x28c]
mov dword [eax + ebp + 0x30], ebx
mov ebx, dword [0xbf3470]
fstp dword [eax + ebx + 0xc]
mov ebx, dword [0xbf3470]
fld dword [esp + 0x18]
fstp dword [eax + ebx + 0x10]
mov ebx, dword [esi + 0x4c]
mov ebp, dword [0xbf3470]
mov dword [eax + ebp + 0x14], ebx
mov ebx, dword [esi + 0x50]
mov ebp, dword [0xbf3470]
mov dword [eax + ebp + 0x18], ebx
mov ebp, dword [0xbf3470]
xor ebx, ebx
mov dword [eax + ebp + 0x1c], ebx
mov ebp, dword [0xbf3470]
mov word [eax + ebp + 0x2c], 4
mov eax, dword [esi + 0x74]
mov ebp, dword [0xbf3470]
mov dword [ecx + ebp], eax
fld dword [esi + 0x78]
fadd dword [0x535a80]
mov eax, dword [0xbf3470]
fstp dword [ecx + eax + 4]
movzx eax, byte [esi + 0x2d4]
shl eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [0xbf3470]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [ecx + eax + 8]
mov eax, dword [0xbf3470]
mov ebp, dword [ecx + eax + 8]
fld dword [esp + 0x1c]
mov dword [ecx + eax + 0x20], ebp
mov ebp, dword [0xbf3470]
lea eax, [esi + 0x2d4]
mov dword [ecx + ebp + 0x30], eax
mov eax, dword [0xbf3470]
fstp dword [ecx + eax + 0xc]
mov eax, dword [0xbf3470]
fld dword [esp + 0x20]
fstp dword [ecx + eax + 0x10]
mov eax, dword [esi + 0x4c]
mov ebp, dword [0xbf3470]
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 [0xbf3470]
fmul dword [0x535a10]
fadd dword [esi + 0x50]
fstp dword [ecx + eax + 0x18]
mov eax, dword [0xbf3470]
mov dword [ecx + eax + 0x1c], ebx
mov eax, dword [0xbf3470]
mov word [ecx + eax + 0x2c], 4
fld dword [esi + 0x74]
fadd dword [0x535a80]
mov ecx, dword [0xbf3470]
fstp dword [edx + ecx]
mov eax, dword [esi + 0x78]
mov ecx, dword [0xbf3470]
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 [0xbf3470]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [edx + ecx + 8]
mov ecx, dword [0xbf3470]
mov ebp, dword [edx + ecx + 8]
fld dword [esp + 0x24]
mov dword [edx + ecx + 0x20], ebp
mov ecx, dword [0xbf3470]
mov dword [edx + ecx + 0x30], eax
mov eax, dword [0xbf3470]
fstp dword [edx + eax + 0xc]
mov ecx, dword [0xbf3470]
fld dword [esp + 0x28]
fstp dword [edx + ecx + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xbf3470]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x535a10]
fadd dword [esi + 0x4c]
fstp dword [edx + ecx + 0x14]
mov eax, dword [esi + 0x50]
mov ecx, dword [0xbf3470]
mov dword [edx + ecx + 0x18], eax
mov eax, dword [0xbf3470]
mov dword [edx + eax + 0x1c], ebx
mov ecx, dword [0xbf3470]
mov ebp, 4
mov word [edx + ecx + 0x2c], bp
fld dword [esi + 0x74]
fadd dword [0x535a80]
mov edx, dword [0xbf3470]
fstp dword [edi + edx]
mov eax, dword [0xbf3470]
fld dword [esi + 0x78]
fadd dword [0x535a80]
fstp dword [edi + eax + 4]
movzx ecx, byte [esi + 0x2dc]
mov edx, dword [0xbf3470]
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 [0xbf3470]
mov edx, dword [edi + ecx + 8]
fld dword [esp + 0x2c]
mov dword [edi + ecx + 0x20], edx
mov ecx, dword [0xbf3470]
mov dword [edi + ecx + 0x30], eax
mov edx, dword [0xbf3470]
fstp dword [edi + edx + 0xc]
mov eax, dword [0xbf3470]
fstp dword [edi + eax + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [0xbf3470]
dec ecx
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fmul dword [0x535a10]
fadd dword [esi + 0x4c]
fstp dword [edi + edx + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xbf3470]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x535a10]
fadd dword [esi + 0x50]
fstp dword [edi + ecx + 0x18]
mov edx, dword [0xbf3470]
mov dword [edi + edx + 0x1c], ebx
mov eax, dword [0xbf3470]
mov edx, dword [esp + 0x4c]
mov word [edi + eax + 0x2c], bp
mov ecx, dword [0xbf346c]
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 [0x5354b0]
fnstsw ax
test ah, 0x44
jp 0x4d5cec
test byte [edi], 8
je 0x4d5d0f
mov al, byte [edi]
test al, 8
je 0x4d5cf6
mov al, 3
jmp 0x4d5d11
test byte [ecx + 0x17], 4
je 0x4d5d0f
test al, 4
jne 0x4d5d0f
mov edx, dword [0x12f76ec]
cmp dword [edx + 0x20], ebx
jle 0x4d5d0f
xor al, al
jmp 0x4d5d11
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]
test al, al
jns 0x4d5dc7
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4d5d41
lea eax, [eax + eax + 2]
jmp 0x4d5d43
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edx, dword [0x1313d80]
mov edi, dword [edx + 0x3f4]
jl 0x4d5d7c
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + edi + 0x2dd]
test dl, dl
jns 0x4d5d78
lea eax, [ebp + 1]
jmp 0x4d5d7e
mov eax, ebp
jmp 0x4d5d7e
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
je 0x4d5da9
mov ax, word [esp + 0x34]
mov edx, dword [esp + 0x40]
mov word [ecx + 2], ax
mov ax, word [esp + 0x30]
mov word [ecx], dx
mov word [ecx + 4], ax
jmp 0x4d5e47
mov dx, word [esp + 0x34]
mov ax, word [esp + 0x30]
mov word [ecx], dx
mov edx, dword [esp + 0x40]
mov word [ecx + 2], dx
mov word [ecx + 4], ax
jmp 0x4d5e47
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edx, dword [0x1313d80]
mov ebp, dword [edx + 0x3f4]
jl 0x4d5dfc
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + ebp + 0x2dd]
test dl, dl
jns 0x4d5df7
mov eax, edi
jmp 0x4d5dfe
lea eax, [edi + 1]
jmp 0x4d5dfe
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4d5e13
lea eax, [eax + eax + 2]
jmp 0x4d5e15
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
je 0x4d5e2e
mov ax, word [esp + 0x38]
mov dx, word [esp + 0x30]
jmp 0x4d5e38
mov ax, word [esp + 0x30]
mov dx, word [esp + 0x38]
mov word [ecx + 2], dx
mov edx, dword [esp + 0x40]
mov word [ecx], ax
mov word [ecx + 4], dx
mov eax, dword [0xbf346c]
mov ecx, dword [esp + 0x54]
add ecx, eax
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 [0x5354b0]
fnstsw ax
test ah, 0x44
jp 0x4d5e89
test byte [edi], 8
je 0x4d5eab
mov al, byte [edi]
test al, 8
je 0x4d5e93
mov al, 3
jmp 0x4d5ead
test byte [ecx + 0x17], 4
je 0x4d5eab
test al, 4
jne 0x4d5eab
mov eax, dword [0x12f76ec]
cmp dword [eax + 0x20], ebx
jle 0x4d5eab
xor al, al
jmp 0x4d5ead
mov al, 2
or byte [ecx + 0x17], al
mov ax, word [esp + 0x58]
mov word [ecx + 0x1c], ax
mov al, byte [esi + 0x2dd]
test al, al
jns 0x4d5f40
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4d5ed4
lea eax, [eax + eax + 1]
jmp 0x4d5ed6
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edi, dword [0x1313d80]
mov edi, dword [edi + 0x3f4]
jl 0x4d5f0e
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
test byte [eax + edi + 0x2dd], 0x80
je 0x4d5f09
mov eax, ebp
jmp 0x4d5f10
lea eax, [ebp + 1]
jmp 0x4d5f10
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x34]
je 0x4d5f33
mov word [ecx + 2], dx
mov dx, word [esp + 0x38]
mov word [ecx], ax
jmp 0x4d5fc3
mov word [ecx], dx
mov dx, word [esp + 0x38]
jmp 0x4d5fbf
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edx, dword [0x1313d80]
mov ebp, dword [edx + 0x3f4]
jl 0x4d5f75
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + ebp + 0x2dd]
test dl, dl
jns 0x4d5f71
lea eax, [edi + 1]
jmp 0x4d5f77
mov eax, edi
jmp 0x4d5f77
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4d5f8c
lea eax, [eax + eax + 1]
jmp 0x4d5f8e
xor eax, eax
mov dx, word [esp + 0x38]
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x30]
je 0x4d5fb7
mov word [ecx], ax
mov ax, word [esp + 0x34]
mov word [ecx + 2], dx
mov word [ecx + 4], ax
jmp 0x4d5fc7
mov word [ecx], dx
mov dx, word [esp + 0x34]
mov word [ecx + 2], ax
mov word [ecx + 4], dx
mov eax, dword [esp + 0x48]
mov ecx, dword [0x1313d80]
mov edx, dword [ecx + 0x3f0]
inc eax
add esi, 0x2e0
cmp eax, edx
mov dword [esp + 0x48], eax
jle 0x4d5507
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret