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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x12ff7a0]
mov ecx, dword [eax + 0x3f0]
push ebx
push ebp
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
je 0x4d26d3
call fcn.004a2d60
mov ecx, dword [0x12ff7a0]
mov eax, dword [ecx + 0x3f0]
mov edx, dword [0x12e3120]
mov ecx, dword [edx + 0x20]
shl eax, 2
cmp ecx, eax
mov dword [esp + 0x48], eax
jge 0x4d19c1
fild dword [esp + 0x48]
push ecx
fstp dword [esp]
jmp 0x4d19ce
cmp ecx, 0xffff
jle 0x4d19db
push 0x477fff00
push str.ter_maxtris
call fcn.0044d230
add esp, 8
mov eax, dword [0x12e3120]
mov ecx, dword [eax + 0x20]
push ecx
push str.Using_ter_maxtris___d_n
call fcn.0044a720
mov eax, dword [0x12e3120]
mov edx, dword [eax + 0x20]
lea ecx, [edx + edx + 1]
mov dword [0xbaff14], ecx
mov eax, dword [eax + 0x20]
inc eax
mov dword [0xbaff30], 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 [0x12ff6b4]
push edi
mov dword [0xbb021c], eax
call dword [0x12ff6b4]
mov ecx, dword [0xbaff14]
mov edx, dword [0xbaff30]
mov dword [0xbb0220], eax
lea eax, [ecx - 1]
add esp, 0x10
mov ebp, 1
mov dword [0x12e30d8], eax
dec edx
xor eax, eax
cmp ecx, ebx
mov dword [0x12e30d0], ebp
mov dword [0x12e30f0], ebp
mov dword [0x12e30f8], edx
jle 0x4d1a9f
xor ecx, ecx
nop
lea esp, [esp]
mov ebp, dword [0xbb021c]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x24], dx
mov ebp, dword [0xbb021c]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x26], dx
mov edx, dword [0xbaff14]
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x4d1a70
mov ebp, 1
mov ecx, dword [0xbb021c]
mov word [ecx + 0x24], bx
lea edx, [eax + eax*4]
mov eax, dword [0xbb021c]
mov word [eax + edx*8 - 2], bx
mov ecx, dword [0xbaff30]
xor eax, eax
cmp ecx, ebx
jle 0x4d1af3
xor ecx, ecx
mov ebp, dword [0xbb0220]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x36], dx
mov ebp, dword [0xbb0220]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x34], dx
mov edx, dword [0xbaff30]
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x4d1ac4
mov ebp, 1
mov ecx, dword [0xbb0220]
imul eax, eax, 0x38
mov word [ecx + 0x36], bx
mov edx, dword [0xbb0220]
mov word [eax + edx - 4], bx
mov ecx, dword [0x12ff7a0]
mov eax, dword [ecx + 0x3f4]
xor edx, edx
cmp dword [ecx + 0x3f0], ebx
jle 0x4d1b4d
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 [0x12ff7a0]
add eax, 0x2e0
inc edx
cmp edx, dword [ecx + 0x3f0]
jl 0x4d1b24
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 [0x531bd8]
fstp qword [esp]
push ecx
fild qword [esp + 0x64]
sub esp, 0x18
fmul qword [0x531bd8]
fstp qword [esp + 0x10]
fild dword [esp + 0x6c]
fmul qword [0x531bd8]
fstp qword [esp + 8]
fild dword [esp + 0x68]
fmul qword [0x531bd8]
fstp qword [esp]
push str.Terrain:__.2f_MB_tris___.2f_MB_verts___.2f_MB_in__d_patches___.2f_MB_total_n
call fcn.0044a720
mov eax, dword [0x12ff7a0]
mov ecx, dword [eax + 0x3f0]
mov esi, dword [eax + 0x3f4]
add esp, 0x28
cmp ecx, ebp
mov dword [esp + 0x48], ebp
jl 0x4d26d3
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 0x4d1c3c
fld dword [esp + 0x14]
jmp 0x4d1c40
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4d1c55
fld dword [esp + 0x24]
jmp 0x4d1c59
fld dword [esp + 0x2c]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4d1c81
fld dword [esp + 0x14]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x4d1c7b
fld dword [esp + 0x14]
jmp 0x4d1c9a
fld dword [esp + 0x1c]
jmp 0x4d1c9a
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4d1c96
fld dword [esp + 0x24]
jmp 0x4d1c9a
fld dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
call fcn.00516e53
fstp dword [esp + 0x40]
add esp, 8
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4d1cc1
fld dword [esp + 0x18]
jmp 0x4d1cc5
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x4d1cda
fld dword [esp + 0x28]
jmp 0x4d1cde
fld dword [esp + 0x3c]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4d1d06
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4d1d00
fld dword [esp + 0x18]
jmp 0x4d1d1f
fld dword [esp + 0x20]
jmp 0x4d1d1f
fld dword [esp + 0x28]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x4d1d1b
fld dword [esp + 0x28]
jmp 0x4d1d1f
fld dword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
call fcn.00516e53
fld dword [esp + 0x1c]
mov edx, dword [0x12e30d0]
fsub dword [esp + 0x40]
mov edi, dword [0xbb021c]
xor ecx, ecx
lea eax, [edx + edx*4]
fstp dword [esp + 0x1c]
shl eax, 3
fld dword [esp + 0x24]
mov cx, word [eax + edi + 0x26]
fsub dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fsub dword [esp + 0x38]
mov dword [0x12e30d0], ecx
lea ecx, [ecx + ecx*4]
fstp dword [esp + 0x24]
mov word [edi + ecx*8 + 0x24], bx
fld dword [esp + 0x2c]
mov cx, word [esi + 8]
fsub dword [esp + 0x38]
mov edi, dword [0xbb021c]
mov word [eax + edi + 0x24], cx
mov ecx, dword [0xbb021c]
fstp dword [esp + 0x2c]
mov word [eax + ecx + 0x26], bx
fld dword [esp + 0x18]
mov edi, dword [0xbb021c]
fsub st(1)
xor ecx, ecx
mov cx, word [esi + 8]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fsub st(1)
fstp dword [esp + 0x20]
lea ecx, [ecx + ecx*4]
fld dword [esp + 0x28]
mov word [edi + ecx*8 + 0x26], dx
cmp word [esi + 6], bx
fsub st(1)
mov word [esi + 8], dx
fstp dword [esp + 0x28]
fsubr dword [esp + 0x3c]
jne 0x4d1dea
mov word [esi + 6], dx
inc dword [esi + 0x10]
mov ebp, dword [0x12e30d8]
mov edx, dword [0xbb021c]
dec ebp
mov dword [0x12e30d8], ebp
mov byte [eax + edx + 0x17], 4
mov ecx, dword [0xbb021c]
mov dword [eax + ecx + 8], ebx
mov dword [esi + 0x48], ebx
mov edx, dword [0x12e30d0]
mov edi, dword [0xbb021c]
xor ecx, ecx
lea eax, [edx + edx*4]
shl eax, 3
mov cx, word [eax + edi + 0x26]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [0x12e30d0], ecx
lea ecx, [ecx + ecx*4]
mov word [edi + ecx*8 + 0x24], bx
mov cx, word [esi + 8]
mov edi, dword [0xbb021c]
mov word [eax + edi + 0x24], cx
mov ecx, dword [0xbb021c]
mov word [eax + ecx + 0x26], bx
mov edi, dword [0xbb021c]
xor ecx, ecx
mov cx, word [esi + 8]
lea ecx, [ecx + ecx*4]
mov word [edi + ecx*8 + 0x26], dx
cmp word [esi + 6], bx
mov word [esi + 8], dx
jne 0x4d1e7d
mov word [esi + 6], dx
inc dword [esi + 0x10]
dec dword [0x12e30d8]
mov edx, dword [0xbb021c]
mov byte [eax + edx + 0x17], 4
mov ecx, dword [0xbb021c]
mov dword [eax + ecx + 8], ebx
mov dword [esi + 0x48], ebx
mov edx, dword [0x12e30f0]
mov edi, dword [0xbb0220]
mov eax, edx
imul eax, eax, 0x38
xor ecx, ecx
mov cx, word [eax + edi + 0x34]
mov dword [esp + 0x38], edx
mov dword [0x12e30f0], ecx
imul ecx, ecx, 0x38
mov word [ecx + edi + 0x36], bx
mov ecx, dword [0xbb0220]
mov word [eax + ecx + 0x36], bx
mov cx, word [esi + 4]
mov edi, dword [0xbb0220]
mov word [eax + edi + 0x34], cx
mov edi, dword [0xbb0220]
xor ecx, ecx
mov cx, word [esi + 4]
imul ecx, ecx, 0x38
mov word [ecx + edi + 0x36], dx
mov ecx, dword [esi + 0xc]
mov word [esi + 4], dx
inc ecx
mov dword [esi + 0xc], ecx
mov ebp, dword [0x12e30f8]
mov edx, dword [0xbb0220]
dec ebp
mov dword [0x12e30f8], ebp
mov word [eax + edx + 0x2c], bx
mov ecx, dword [0xbb0220]
mov dword [eax + ecx + 0x28], ebx
mov edi, dword [0x12e30f0]
mov ebp, dword [0xbb0220]
mov ecx, edi
imul ecx, ecx, 0x38
xor edx, edx
mov dx, word [ecx + ebp + 0x34]
mov dword [esp + 0x40], edi
mov dword [0x12e30f0], edx
imul edx, edx, 0x38
mov word [edx + ebp + 0x36], bx
mov edx, dword [0xbb0220]
mov word [ecx + edx + 0x36], bx
mov dx, word [esi + 4]
mov ebp, dword [0xbb0220]
mov word [ecx + ebp + 0x34], dx
mov ebp, dword [0xbb0220]
xor edx, edx
mov dx, word [esi + 4]
imul edx, edx, 0x38
mov word [edx + ebp + 0x36], di
mov word [esi + 4], di
inc dword [esi + 0xc]
dec dword [0x12e30f8]
mov edx, dword [0xbb0220]
mov word [ecx + edx + 0x2c], bx
mov edx, dword [0xbb0220]
mov dword [ecx + edx + 0x28], ebx
mov edi, dword [0x12e30f0]
mov ebp, dword [0xbb0220]
mov dword [esp + 0x34], edi
imul edi, edi, 0x38
xor edx, edx
mov dx, word [edi + ebp + 0x34]
mov dword [0x12e30f0], edx
imul edx, edx, 0x38
mov word [edx + ebp + 0x36], bx
mov edx, dword [0xbb0220]
mov word [edi + edx + 0x36], bx
mov dx, word [esi + 4]
mov ebx, dword [0xbb0220]
mov word [edi + ebx + 0x34], dx
mov ebp, dword [0xbb0220]
xor edx, edx
mov dx, word [esi + 4]
mov ebx, edx
mov edx, dword [esp + 0x34]
imul ebx, ebx, 0x38
mov word [ebx + ebp + 0x36], dx
mov ebp, dword [esi + 0xc]
mov word [esi + 4], dx
xor edx, edx
inc ebp
mov dword [esi + 0xc], ebp
dec dword [0x12e30f8]
mov ebx, dword [0xbb0220]
mov word [edi + ebx + 0x2c], dx
mov ebx, dword [0xbb0220]
mov dword [edi + ebx + 0x28], edx
mov edx, dword [0x12e30f0]
mov ebp, dword [0xbb0220]
mov dword [esp + 0x30], edx
imul edx, edx, 0x38
xor ebx, ebx
mov bx, word [edx + ebp + 0x34]
mov dword [esp + 0x44], edx
mov dword [0x12e30f0], ebx
imul ebx, ebx, 0x38
mov word [ebx + ebp + 0x36], 0
mov ebx, dword [0xbb0220]
mov word [edx + ebx + 0x36], 0
mov bx, word [esi + 4]
mov ebp, dword [0xbb0220]
mov word [edx + ebp + 0x34], bx
mov ebp, dword [0xbb0220]
xor edx, edx
mov dx, word [esi + 4]
mov ebx, edx
mov edx, dword [esp + 0x30]
imul ebx, ebx, 0x38
mov word [ebx + ebp + 0x36], dx
mov word [esi + 4], dx
inc dword [esi + 0xc]
mov ebp, dword [0x12e30f8]
mov ebx, dword [0xbb0220]
xor edx, edx
dec ebp
mov dword [0x12e30f8], ebp
mov ebp, dword [esp + 0x44]
mov word [ebx + ebp + 0x2c], dx
mov ebx, dword [0xbb0220]
mov dword [ebx + ebp + 0x28], edx
mov edx, dword [esi + 0x74]
mov ebx, dword [0xbb0220]
mov dword [eax + ebx], edx
mov edx, dword [esi + 0x78]
mov ebx, dword [0xbb0220]
mov dword [eax + ebx + 4], edx
xor edx, edx
mov dl, byte [esi + 0x28c]
shl edx, 1
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
mov edx, dword [0xbb0220]
fadd dword [esi + 0x7c]
fstp dword [eax + edx + 8]
mov edx, dword [0xbb0220]
mov ebx, dword [eax + edx + 8]
fld dword [esp + 0x14]
mov dword [eax + edx + 0x20], ebx
mov ebx, dword [0xbb0220]
lea edx, [esi + 0x28c]
mov dword [eax + ebx + 0x30], edx
mov edx, dword [0xbb0220]
fstp dword [eax + edx + 0xc]
mov edx, dword [0xbb0220]
fld dword [esp + 0x18]
fstp dword [eax + edx + 0x10]
mov edx, dword [esi + 0x4c]
mov ebx, dword [0xbb0220]
mov dword [eax + ebx + 0x14], edx
mov edx, dword [esi + 0x50]
mov ebx, dword [0xbb0220]
mov dword [eax + ebx + 0x18], edx
mov edx, dword [0xbb0220]
xor ebx, ebx
mov dword [eax + edx + 0x1c], ebx
mov edx, dword [0xbb0220]
mov word [eax + edx + 0x2c], 4
mov eax, dword [esi + 0x74]
mov edx, dword [0xbb0220]
mov dword [ecx + edx], eax
fld dword [esi + 0x78]
fadd dword [0x531a68]
mov eax, dword [0xbb0220]
xor edx, edx
fstp dword [ecx + eax + 4]
mov dl, byte [esi + 0x2d4]
mov eax, dword [0xbb0220]
shl edx, 1
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [ecx + eax + 8]
mov eax, dword [0xbb0220]
mov edx, dword [ecx + eax + 8]
fld dword [esp + 0x1c]
mov dword [ecx + eax + 0x20], edx
mov edx, dword [0xbb0220]
lea eax, [esi + 0x2d4]
mov dword [ecx + edx + 0x30], eax
mov eax, dword [0xbb0220]
fstp dword [ecx + eax + 0xc]
mov edx, dword [0xbb0220]
fld dword [esp + 0x20]
fstp dword [ecx + edx + 0x10]
mov eax, dword [esi + 0x4c]
mov edx, dword [0xbb0220]
mov dword [ecx + edx + 0x14], eax
mov eax, dword [esi + 0x14]
mov edx, dword [0xbb0220]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x5319f8]
fadd dword [esi + 0x50]
fstp dword [ecx + edx + 0x18]
mov eax, dword [0xbb0220]
mov dword [ecx + eax + 0x1c], ebx
mov edx, dword [0xbb0220]
mov word [ecx + edx + 0x2c], 4
fld dword [esi + 0x74]
fadd dword [0x531a68]
mov eax, dword [0xbb0220]
fstp dword [edi + eax]
mov ecx, dword [esi + 0x78]
mov edx, dword [0xbb0220]
mov dword [edi + edx + 4], ecx
mov edx, dword [0xbb0220]
xor ecx, ecx
mov cl, byte [esi + 0x294]
lea eax, [esi + 0x294]
shl ecx, 1
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [edi + edx + 8]
mov ecx, dword [0xbb0220]
mov edx, dword [edi + ecx + 8]
fld dword [esp + 0x24]
mov dword [edi + ecx + 0x20], edx
mov ecx, dword [0xbb0220]
mov dword [edi + ecx + 0x30], eax
mov edx, dword [0xbb0220]
fstp dword [edi + edx + 0xc]
mov eax, dword [0xbb0220]
fld dword [esp + 0x28]
fstp dword [edi + eax + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [0xbb0220]
dec ecx
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fmul dword [0x5319f8]
fadd dword [esi + 0x4c]
fstp dword [edi + edx + 0x14]
mov eax, dword [esi + 0x50]
mov ecx, dword [0xbb0220]
mov dword [edi + ecx + 0x18], eax
mov edx, dword [0xbb0220]
mov dword [edi + edx + 0x1c], ebx
mov eax, dword [0xbb0220]
mov edx, 4
mov word [edi + eax + 0x2c], dx
fld dword [esi + 0x74]
fadd dword [0x531a68]
mov ecx, dword [0xbb0220]
fstp dword [ecx + ebp]
mov eax, dword [0xbb0220]
fld dword [esi + 0x78]
xor ecx, ecx
fadd dword [0x531a68]
fstp dword [eax + ebp + 4]
mov cl, byte [esi + 0x2dc]
lea eax, [esi + 0x2dc]
shl ecx, 1
mov dword [esp + 0x44], ecx
mov ecx, dword [0xbb0220]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [ecx + ebp + 8]
mov ecx, dword [0xbb0220]
mov edi, dword [ecx + ebp + 8]
fld dword [esp + 0x2c]
mov dword [ecx + ebp + 0x20], edi
mov ecx, dword [0xbb0220]
mov dword [ecx + ebp + 0x30], eax
mov eax, dword [0xbb0220]
fstp dword [eax + ebp + 0xc]
mov ecx, dword [0xbb0220]
lea edi, [esi + 0x94]
fstp dword [ecx + ebp + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xbb0220]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x5319f8]
fadd dword [esi + 0x4c]
fstp dword [ecx + ebp + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xbb0220]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x5319f8]
fadd dword [esi + 0x50]
fstp dword [ecx + ebp + 0x18]
mov eax, dword [0xbb0220]
mov dword [eax + ebp + 0x1c], ebx
mov ecx, dword [0xbb0220]
mov eax, dword [esp + 0x4c]
mov word [ecx + ebp + 0x2c], dx
mov edx, dword [0xbb021c]
lea ecx, [eax + edx]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], edi
mov word [ecx + 0x14], 1
mov byte [ecx + 0x16], bl
mov edx, dword [edi]
mov al, dl
mov dword [esp + 0x44], edx
and al, 0xf0
mov byte [esp + 0x44], al
fld dword [esp + 0x44]
fcomp dword [0x5314c0]
fnstsw ax
test ah, 0x44
jp 0x4d23db
mov al, dl
test al, 8
je 0x4d23fd
mov al, byte [edi]
test al, 8
je 0x4d23e5
mov al, 3
jmp 0x4d23ff
test byte [ecx + 0x17], 4
je 0x4d23fd
test al, 4
jne 0x4d23fd
mov eax, dword [0x12e310c]
cmp dword [eax + 0x20], ebx
jle 0x4d23fd
xor al, al
jmp 0x4d23ff
mov al, 2
or byte [ecx + 0x17], al
mov dx, word [esp + 0x50]
mov word [ecx + 0x1c], dx
mov al, byte [esi + 0x2dd]
test al, al
jns 0x4d24b0
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4d242a
lea eax, [eax + eax + 2]
jmp 0x4d242c
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edx, dword [0x12ff7a0]
mov edi, dword [edx + 0x3f4]
jl 0x4d2465
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + edi + 0x2dd]
test dl, dl
jns 0x4d2461
lea eax, [ebp + 1]
jmp 0x4d2467
mov eax, ebp
jmp 0x4d2467
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
je 0x4d2492
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 0x4d2530
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 0x4d2530
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edx, dword [0x12ff7a0]
mov ebp, dword [edx + 0x3f4]
jl 0x4d24e5
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + ebp + 0x2dd]
test dl, dl
jns 0x4d24e0
mov eax, edi
jmp 0x4d24e7
lea eax, [edi + 1]
jmp 0x4d24e7
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4d24fc
lea eax, [eax + eax + 2]
jmp 0x4d24fe
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
je 0x4d2517
mov ax, word [esp + 0x38]
mov dx, word [esp + 0x30]
jmp 0x4d2521
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 [0xbb021c]
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 [0x5314c0]
fnstsw ax
test ah, 0x44
jp 0x4d2572
test byte [edi], 8
je 0x4d2594
mov al, byte [edi]
test al, 8
je 0x4d257c
mov al, 3
jmp 0x4d2596
test byte [ecx + 0x17], 4
je 0x4d2594
test al, 4
jne 0x4d2594
mov eax, dword [0x12e310c]
cmp dword [eax + 0x20], ebx
jle 0x4d2594
xor al, al
jmp 0x4d2596
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 0x4d2629
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4d25bd
lea eax, [eax + eax + 1]
jmp 0x4d25bf
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edi, dword [0x12ff7a0]
mov edi, dword [edi + 0x3f4]
jl 0x4d25f7
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
test byte [eax + edi + 0x2dd], 0x80
je 0x4d25f2
mov eax, ebp
jmp 0x4d25f9
lea eax, [ebp + 1]
jmp 0x4d25f9
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x34]
je 0x4d261c
mov word [ecx + 2], dx
mov dx, word [esp + 0x38]
mov word [ecx], ax
jmp 0x4d26ac
mov word [ecx], dx
mov dx, word [esp + 0x38]
jmp 0x4d26a8
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edx, dword [0x12ff7a0]
mov ebp, dword [edx + 0x3f4]
jl 0x4d265e
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + ebp + 0x2dd]
test dl, dl
jns 0x4d265a
lea eax, [edi + 1]
jmp 0x4d2660
mov eax, edi
jmp 0x4d2660
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4d2675
lea eax, [eax + eax + 1]
jmp 0x4d2677
xor eax, eax
mov dx, word [esp + 0x38]
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x30]
je 0x4d26a0
mov word [ecx], ax
mov ax, word [esp + 0x34]
mov word [ecx + 2], dx
mov word [ecx + 4], ax
jmp 0x4d26b0
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 [0x12ff7a0]
mov edx, dword [ecx + 0x3f0]
inc eax
add esi, 0x2e0
cmp eax, edx
mov dword [esp + 0x48], eax
jle 0x4d1bd7
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret