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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x1313d40]
mov ecx, dword [eax + 0x3f0]
push ebx
push ebp
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
je 0x4d607a
call fcn.004b1050
mov ecx, dword [0x1313d40]
mov eax, dword [ecx + 0x3f0]
mov edx, dword [0x12f76c0]
mov ecx, dword [edx + 0x20]
shl eax, 2
cmp ecx, eax
mov dword [esp + 0x48], eax
jge 0x4d5381
fild dword [esp + 0x48]
push ecx
fstp dword [esp]
jmp 0x4d538e
cmp ecx, 0xffff
jle 0x4d539b
push 0x477fff00
push str.ter_maxtris
call fcn.0044fd30
add esp, 8
mov eax, dword [0x12f76c0]
mov ecx, dword [eax + 0x20]
push ecx
push str.Using_ter_maxtris___d_n
call fcn.0044d120
mov eax, dword [0x12f76c0]
mov edx, dword [eax + 0x20]
lea ecx, [edx + edx + 1]
mov dword [0xbf3124], ecx
mov eax, dword [eax + 0x20]
inc eax
mov dword [0xbf3140], 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 [0x1313c54]
push edi
mov dword [0xbf342c], eax
call dword [0x1313c54]
mov ecx, dword [0xbf3124]
mov edx, dword [0xbf3140]
mov dword [0xbf3430], eax
lea eax, [ecx - 1]
add esp, 0x10
mov ebp, 1
mov dword [0x12f7678], eax
dec edx
xor eax, eax
cmp ecx, ebx
mov dword [0x12f7670], ebp
mov dword [0x12f7690], ebp
mov dword [0x12f7698], edx
jle 0x4d545f
xor ecx, ecx
nop
lea esp, [esp]
mov ebp, dword [0xbf342c]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x24], dx
mov ebp, dword [0xbf342c]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x26], dx
mov edx, dword [0xbf3124]
inc eax
add ecx, 0x28
cmp eax, edx
jl 0x4d5430
mov ebp, 1
mov ecx, dword [0xbf342c]
mov word [ecx + 0x24], bx
lea edx, [eax + eax*4]
mov eax, dword [0xbf342c]
mov word [eax + edx*8 - 2], bx
mov ecx, dword [0xbf3140]
xor eax, eax
cmp ecx, ebx
jle 0x4d54b3
xor ecx, ecx
mov ebp, dword [0xbf3430]
lea edx, [eax - 1]
mov word [ecx + ebp + 0x36], dx
mov ebp, dword [0xbf3430]
lea edx, [eax + 1]
mov word [ecx + ebp + 0x34], dx
mov edx, dword [0xbf3140]
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x4d5484
mov ebp, 1
mov ecx, dword [0xbf3430]
imul eax, eax, 0x38
mov word [ecx + 0x36], bx
mov edx, dword [0xbf3430]
mov word [eax + edx - 4], bx
mov ecx, dword [0x1313d40]
mov eax, dword [ecx + 0x3f4]
xor edx, edx
cmp dword [ecx + 0x3f0], ebx
jle 0x4d550d
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 [0x1313d40]
add eax, 0x2e0
inc edx
cmp edx, dword [ecx + 0x3f0]
jl 0x4d54e4
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 [0x535c00]
fstp qword [esp]
push ecx
fild qword [esp + 0x64]
sub esp, 0x18
fmul qword [0x535c00]
fstp qword [esp + 0x10]
fild dword [esp + 0x6c]
fmul qword [0x535c00]
fstp qword [esp + 8]
fild dword [esp + 0x68]
fmul qword [0x535c00]
fstp qword [esp]
push str.Terrain:__.2f_MB_tris___.2f_MB_verts___.2f_MB_in__d_patches___.2f_MB_total_n
call fcn.0044d120
mov eax, dword [0x1313d40]
mov ecx, dword [eax + 0x3f0]
mov esi, dword [eax + 0x3f4]
add esp, 0x28
cmp ecx, ebp
mov dword [esp + 0x48], ebp
jl 0x4d607a
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 0x4d55fc
fld dword [esp + 0x14]
jmp 0x4d5600
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4d5615
fld dword [esp + 0x24]
jmp 0x4d5619
fld dword [esp + 0x2c]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4d5641
fld dword [esp + 0x14]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x4d563b
fld dword [esp + 0x14]
jmp 0x4d565a
fld dword [esp + 0x1c]
jmp 0x4d565a
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x4d5656
fld dword [esp + 0x24]
jmp 0x4d565a
fld dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
call fcn.0051aa23
fstp dword [esp + 0x40]
add esp, 8
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4d5681
fld dword [esp + 0x18]
jmp 0x4d5685
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x4d569a
fld dword [esp + 0x28]
jmp 0x4d569e
fld dword [esp + 0x3c]
fxch st(1)
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x4d56c6
fld dword [esp + 0x18]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x4d56c0
fld dword [esp + 0x18]
jmp 0x4d56df
fld dword [esp + 0x20]
jmp 0x4d56df
fld dword [esp + 0x28]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x4d56db
fld dword [esp + 0x28]
jmp 0x4d56df
fld dword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
call fcn.0051aa23
fld dword [esp + 0x1c]
mov ecx, dword [0x12f7670]
fsub dword [esp + 0x40]
mov edi, dword [0xbf342c]
lea eax, [ecx + ecx*4]
shl eax, 3
fstp dword [esp + 0x1c]
movzx edx, word [eax + edi + 0x26]
fld dword [esp + 0x24]
mov dword [0x12f7670], 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 [0xbf342c]
fld dword [esp + 0x2c]
mov word [eax + edi + 0x24], dx
fsub dword [esp + 0x40]
mov edx, dword [0xbf342c]
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 [0xbf342c]
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 0x4d57a6
mov word [esi + 6], cx
inc dword [esi + 0x10]
mov ebp, dword [0x12f7678]
mov ecx, dword [0xbf342c]
dec ebp
mov dword [0x12f7678], ebp
mov byte [eax + ecx + 0x17], 4
mov edx, dword [0xbf342c]
mov dword [eax + edx + 8], ebx
mov dword [esi + 0x48], ebx
mov ecx, dword [0x12f7670]
mov edi, dword [0xbf342c]
lea eax, [ecx + ecx*4]
shl eax, 3
movzx edx, word [eax + edi + 0x26]
mov dword [0x12f7670], edx
lea edx, [edx + edx*4]
mov word [edi + edx*8 + 0x24], bx
mov dx, word [esi + 8]
mov edi, dword [0xbf342c]
mov word [eax + edi + 0x24], dx
mov edx, dword [0xbf342c]
mov word [eax + edx + 0x26], bx
movzx edx, word [esi + 8]
mov edi, dword [0xbf342c]
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 0x4d5835
mov word [esi + 6], cx
inc dword [esi + 0x10]
dec dword [0x12f7678]
mov ecx, dword [0xbf342c]
mov byte [eax + ecx + 0x17], 4
mov edx, dword [0xbf342c]
mov dword [eax + edx + 8], ebx
mov dword [esi + 0x48], ebx
mov ecx, dword [0x12f7690]
mov edi, dword [0xbf3430]
mov eax, ecx
imul eax, eax, 0x38
movzx edx, word [eax + edi + 0x34]
mov dword [0x12f7690], edx
imul edx, edx, 0x38
mov word [edx + edi + 0x36], bx
mov edx, dword [0xbf3430]
mov word [eax + edx + 0x36], bx
mov dx, word [esi + 4]
mov edi, dword [0xbf3430]
mov word [eax + edi + 0x34], dx
movzx edx, word [esi + 4]
mov edi, dword [0xbf3430]
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 [0x12f7698]
mov dword [esp + 0x38], ecx
mov ecx, dword [0xbf3430]
mov word [eax + ecx + 0x2c], bx
mov edx, dword [0xbf3430]
mov dword [eax + edx + 0x28], ebx
mov edx, dword [0x12f7690]
mov ebp, dword [0xbf3430]
mov ecx, edx
imul ecx, ecx, 0x38
movzx edi, word [ecx + ebp + 0x34]
mov dword [0x12f7690], edi
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], bx
mov edi, dword [0xbf3430]
mov word [ecx + edi + 0x36], bx
mov di, word [esi + 4]
mov ebp, dword [0xbf3430]
mov word [ecx + ebp + 0x34], di
movzx edi, word [esi + 4]
mov ebp, dword [0xbf3430]
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 [0x12f7698]
mov edx, dword [0xbf3430]
dec ebp
mov dword [0x12f7698], ebp
mov word [ecx + edx + 0x2c], bx
mov edx, dword [0xbf3430]
mov dword [ecx + edx + 0x28], ebx
mov edx, dword [0x12f7690]
mov ebp, dword [0xbf3430]
mov dword [esp + 0x34], edx
imul edx, edx, 0x38
movzx edi, word [edx + ebp + 0x34]
mov dword [0x12f7690], edi
imul edi, edi, 0x38
mov word [edi + ebp + 0x36], bx
mov edi, dword [0xbf3430]
mov word [edx + edi + 0x36], bx
mov di, word [esi + 4]
mov ebx, dword [0xbf3430]
mov word [edx + ebx + 0x34], di
movzx ebx, word [esi + 4]
mov ebp, dword [0xbf3430]
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 [0x12f7698]
mov ebx, dword [0xbf3430]
dec ebp
mov dword [0x12f7698], ebp
xor edi, edi
mov word [edx + ebx + 0x2c], di
mov ebx, dword [0xbf3430]
mov dword [edx + ebx + 0x28], edi
mov edi, dword [0x12f7690]
mov ebp, dword [0xbf3430]
mov dword [esp + 0x30], edi
imul edi, edi, 0x38
movzx ebx, word [edi + ebp + 0x34]
mov dword [0x12f7690], ebx
imul ebx, ebx, 0x38
mov word [ebx + ebp + 0x36], 0
mov ebx, dword [0xbf3430]
mov word [edi + ebx + 0x36], 0
mov bx, word [esi + 4]
mov ebp, dword [0xbf3430]
mov word [edi + ebp + 0x34], bx
movzx ebx, word [esi + 4]
mov ebp, dword [0xbf3430]
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 [0x12f7698]
mov ebp, dword [0xbf3430]
xor ebx, ebx
dec edi
mov dword [0x12f7698], edi
mov edi, dword [esp + 0x44]
mov word [edi + ebp + 0x2c], bx
mov ebp, dword [0xbf3430]
mov dword [edi + ebp + 0x28], ebx
mov ebx, dword [esi + 0x74]
mov ebp, dword [0xbf3430]
mov dword [eax + ebp], ebx
mov ebx, dword [esi + 0x78]
mov ebp, dword [0xbf3430]
mov dword [eax + ebp + 4], ebx
movzx ebx, byte [esi + 0x28c]
shl ebx, 1
mov dword [esp + 0x44], ebx
mov ebx, dword [0xbf3430]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [eax + ebx + 8]
mov ebx, dword [0xbf3430]
mov ebp, dword [eax + ebx + 8]
fld dword [esp + 0x14]
mov dword [eax + ebx + 0x20], ebp
mov ebp, dword [0xbf3430]
lea ebx, [esi + 0x28c]
mov dword [eax + ebp + 0x30], ebx
mov ebx, dword [0xbf3430]
fstp dword [eax + ebx + 0xc]
mov ebx, dword [0xbf3430]
fld dword [esp + 0x18]
fstp dword [eax + ebx + 0x10]
mov ebx, dword [esi + 0x4c]
mov ebp, dword [0xbf3430]
mov dword [eax + ebp + 0x14], ebx
mov ebx, dword [esi + 0x50]
mov ebp, dword [0xbf3430]
mov dword [eax + ebp + 0x18], ebx
mov ebp, dword [0xbf3430]
xor ebx, ebx
mov dword [eax + ebp + 0x1c], ebx
mov ebp, dword [0xbf3430]
mov word [eax + ebp + 0x2c], 4
mov eax, dword [esi + 0x74]
mov ebp, dword [0xbf3430]
mov dword [ecx + ebp], eax
fld dword [esi + 0x78]
fadd dword [0x535a90]
mov eax, dword [0xbf3430]
fstp dword [ecx + eax + 4]
movzx eax, byte [esi + 0x2d4]
shl eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [0xbf3430]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [ecx + eax + 8]
mov eax, dword [0xbf3430]
mov ebp, dword [ecx + eax + 8]
fld dword [esp + 0x1c]
mov dword [ecx + eax + 0x20], ebp
mov ebp, dword [0xbf3430]
lea eax, [esi + 0x2d4]
mov dword [ecx + ebp + 0x30], eax
mov eax, dword [0xbf3430]
fstp dword [ecx + eax + 0xc]
mov eax, dword [0xbf3430]
fld dword [esp + 0x20]
fstp dword [ecx + eax + 0x10]
mov eax, dword [esi + 0x4c]
mov ebp, dword [0xbf3430]
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 [0xbf3430]
fmul dword [0x535a20]
fadd dword [esi + 0x50]
fstp dword [ecx + eax + 0x18]
mov eax, dword [0xbf3430]
mov dword [ecx + eax + 0x1c], ebx
mov eax, dword [0xbf3430]
mov word [ecx + eax + 0x2c], 4
fld dword [esi + 0x74]
fadd dword [0x535a90]
mov ecx, dword [0xbf3430]
fstp dword [edx + ecx]
mov eax, dword [esi + 0x78]
mov ecx, dword [0xbf3430]
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 [0xbf3430]
fild dword [esp + 0x44]
fadd dword [esi + 0x7c]
fstp dword [edx + ecx + 8]
mov ecx, dword [0xbf3430]
mov ebp, dword [edx + ecx + 8]
fld dword [esp + 0x24]
mov dword [edx + ecx + 0x20], ebp
mov ecx, dword [0xbf3430]
mov dword [edx + ecx + 0x30], eax
mov eax, dword [0xbf3430]
fstp dword [edx + eax + 0xc]
mov ecx, dword [0xbf3430]
fld dword [esp + 0x28]
fstp dword [edx + ecx + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xbf3430]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x535a20]
fadd dword [esi + 0x4c]
fstp dword [edx + ecx + 0x14]
mov eax, dword [esi + 0x50]
mov ecx, dword [0xbf3430]
mov dword [edx + ecx + 0x18], eax
mov eax, dword [0xbf3430]
mov dword [edx + eax + 0x1c], ebx
mov ecx, dword [0xbf3430]
mov ebp, 4
mov word [edx + ecx + 0x2c], bp
fld dword [esi + 0x74]
fadd dword [0x535a90]
mov edx, dword [0xbf3430]
fstp dword [edi + edx]
mov eax, dword [0xbf3430]
fld dword [esi + 0x78]
fadd dword [0x535a90]
fstp dword [edi + eax + 4]
movzx ecx, byte [esi + 0x2dc]
mov edx, dword [0xbf3430]
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 [0xbf3430]
mov edx, dword [edi + ecx + 8]
fld dword [esp + 0x2c]
mov dword [edi + ecx + 0x20], edx
mov ecx, dword [0xbf3430]
mov dword [edi + ecx + 0x30], eax
mov edx, dword [0xbf3430]
fstp dword [edi + edx + 0xc]
mov eax, dword [0xbf3430]
fstp dword [edi + eax + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [0xbf3430]
dec ecx
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fmul dword [0x535a20]
fadd dword [esi + 0x4c]
fstp dword [edi + edx + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [0xbf3430]
dec eax
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fmul dword [0x535a20]
fadd dword [esi + 0x50]
fstp dword [edi + ecx + 0x18]
mov edx, dword [0xbf3430]
mov dword [edi + edx + 0x1c], ebx
mov eax, dword [0xbf3430]
mov edx, dword [esp + 0x4c]
mov word [edi + eax + 0x2c], bp
mov ecx, dword [0xbf342c]
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 [0x5354c0]
fnstsw ax
test ah, 0x44
jp 0x4d5d7c
test byte [edi], 8
je 0x4d5d9f
mov al, byte [edi]
test al, 8
je 0x4d5d86
mov al, 3
jmp 0x4d5da1
test byte [ecx + 0x17], 4
je 0x4d5d9f
test al, 4
jne 0x4d5d9f
mov edx, dword [0x12f76ac]
cmp dword [edx + 0x20], ebx
jle 0x4d5d9f
xor al, al
jmp 0x4d5da1
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 0x4d5e57
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4d5dd1
lea eax, [eax + eax + 2]
jmp 0x4d5dd3
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edx, dword [0x1313d40]
mov edi, dword [edx + 0x3f4]
jl 0x4d5e0c
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + edi + 0x2dd]
test dl, dl
jns 0x4d5e08
lea eax, [ebp + 1]
jmp 0x4d5e0e
mov eax, ebp
jmp 0x4d5e0e
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
je 0x4d5e39
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 0x4d5ed7
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 0x4d5ed7
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edx, dword [0x1313d40]
mov ebp, dword [edx + 0x3f4]
jl 0x4d5e8c
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + ebp + 0x2dd]
test dl, dl
jns 0x4d5e87
mov eax, edi
jmp 0x4d5e8e
lea eax, [edi + 1]
jmp 0x4d5e8e
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x88]
cmp eax, ebx
jl 0x4d5ea3
lea eax, [eax + eax + 2]
jmp 0x4d5ea5
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
je 0x4d5ebe
mov ax, word [esp + 0x38]
mov dx, word [esp + 0x30]
jmp 0x4d5ec8
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 [0xbf342c]
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 [0x5354c0]
fnstsw ax
test ah, 0x44
jp 0x4d5f19
test byte [edi], 8
je 0x4d5f3b
mov al, byte [edi]
test al, 8
je 0x4d5f23
mov al, 3
jmp 0x4d5f3d
test byte [ecx + 0x17], 4
je 0x4d5f3b
test al, 4
jne 0x4d5f3b
mov eax, dword [0x12f76ac]
cmp dword [eax + 0x20], ebx
jle 0x4d5f3b
xor al, al
jmp 0x4d5f3d
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 0x4d5fd0
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4d5f64
lea eax, [eax + eax + 1]
jmp 0x4d5f66
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8e]
cmp eax, ebx
mov edi, dword [0x1313d40]
mov edi, dword [edi + 0x3f4]
jl 0x4d5f9e
lea ebp, [eax + eax + 1]
imul eax, eax, 0x2e0
test byte [eax + edi + 0x2dd], 0x80
je 0x4d5f99
mov eax, ebp
jmp 0x4d5fa0
lea eax, [ebp + 1]
jmp 0x4d5fa0
xor eax, eax
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x34]
je 0x4d5fc3
mov word [ecx + 2], dx
mov dx, word [esp + 0x38]
mov word [ecx], ax
jmp 0x4d6053
mov word [ecx], dx
mov dx, word [esp + 0x38]
jmp 0x4d604f
movsx eax, word [esi + 0x8a]
cmp eax, ebx
mov edx, dword [0x1313d40]
mov ebp, dword [edx + 0x3f4]
jl 0x4d6005
lea edi, [eax + eax + 1]
imul eax, eax, 0x2e0
mov dl, byte [eax + ebp + 0x2dd]
test dl, dl
jns 0x4d6001
lea eax, [edi + 1]
jmp 0x4d6007
mov eax, edi
jmp 0x4d6007
xor eax, eax
mov word [ecx + 0x18], ax
movsx eax, word [esi + 0x8c]
cmp eax, ebx
jl 0x4d601c
lea eax, [eax + eax + 1]
jmp 0x4d601e
xor eax, eax
mov dx, word [esp + 0x38]
mov word [ecx + 0x1a], ax
test byte [esi + 0x2dd], 0x40
mov ax, word [esp + 0x30]
je 0x4d6047
mov word [ecx], ax
mov ax, word [esp + 0x34]
mov word [ecx + 2], dx
mov word [ecx + 4], ax
jmp 0x4d6057
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 [0x1313d40]
mov edx, dword [ecx + 0x3f0]
inc eax
add esi, 0x2e0
cmp eax, edx
mov dword [esp + 0x48], eax
jle 0x4d5597
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret