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

Disassembly:
sub esp, 0x264
push ebp
mov ebp, dword [esp + 0x26c]
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x4e07fc
mov eax, dword [eax]
push eax
call fcn.004d0d10
add esp, 4
mov dword [esp + 0x12c], eax
test eax, eax
mov dword [esp + 0x4c], 0
jle 0x4e07fc
push ebx
push esi
push edi
mov edx, dword [ebp + 0x6c]
mov ecx, dword [esp + 0x58]
xor ebx, ebx
push ecx
mov eax, dword [edx]
mov dword [esp + 0x104], ebx
push eax
call fcn.004d0cf0
mov edx, eax
mov ecx, 6
lea esi, [esp + 0x1d4]
lea edi, [esp + 0x14c]
fld dword [edx + 0x10]
add esp, 8
fstp qword [esp + 0x15c]
fld dword [edx + 0x14]
fstp qword [esp + 0x164]
fld dword [edx + 0x18]
fstp qword [esp + 0x16c]
fld dword [edx + 0x10]
fst qword [esp + 0x144]
fld dword [edx + 0x14]
fst qword [esp + 0x14c]
fld dword [edx + 0x18]
fst qword [esp + 0x154]
fld dword [ebp + 0x74]
fmul st(2)
fld dword [ebp + 0x78]
fmul st(2)
faddp st(1)
fld dword [ebp + 0x70]
fmul st(4)
faddp st(1)
fstp qword [esp + 0x1cc]
fld dword [ebp + 0x80]
fmul st(2)
fld dword [ebp + 0x84]
fmul st(2)
faddp st(1)
fld dword [ebp + 0x7c]
fmul st(4)
faddp st(1)
fstp qword [esp + 0x1d4]
fld dword [ebp + 0x8c]
fmul st(2)
fld dword [ebp + 0x90]
fmul st(2)
faddp st(1)
fld dword [ebp + 0x88]
fmul st(4)
faddp st(1)
fstp qword [esp + 0x1dc]
rep movsd dword es:[edi], dword [esi]
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [esp + 0x1cc]
fadd qword [ebp + 0x20]
fstp qword [esp + 0x144]
fld qword [esp + 0x14c]
fadd qword [ebp + 0x28]
fstp qword [esp + 0x14c]
fld qword [esp + 0x154]
fadd qword [ebp + 0x30]
fstp qword [esp + 0x154]
fld dword [edx + 0x20]
fld dword [edx + 0x2c]
fld dword [edx + 0x38]
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x1c]
fld st(0)
mov dword [esp + 0x108], eax
mov dword [esp + 0x104], ecx
fmul dword [esp + 0x108]
mov ecx, dword [edx + 0x34]
fld st(2)
mov dword [esp + 0x10c], ecx
fmul dword [esp + 0x10c]
fsubp st(1)
fstp dword [esp + 0x12c]
fmul dword [esp + 0x104]
fld st(2)
fmul dword [esp + 0x10c]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10c]
fsubp st(1)
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
fchs
fstp dword [esp + 0x130]
fmul dword [esp + 0x104]
fxch st(1)
fmul dword [esp + 0x108]
fsubp st(1)
fld dword [esp + 0x104]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4dfc68
fld dword [esp + 0x108]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4dfc68
fld dword [esp + 0x10c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4dfccd
fld dword [esp + 0x10c]
fld dword [esp + 0x108]
fld dword [esp + 0x104]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x104]
fmul st(1)
fstp dword [esp + 0x84]
fld dword [esp + 0x88]
fmul st(1)
fstp dword [esp + 0x88]
fld dword [esp + 0x8c]
fmul st(1)
fstp dword [esp + 0x8c]
fstp st(0)
fld dword [esp + 0x130]
fmul dword [esp + 0x10c]
fld st(1)
fmul dword [esp + 0x108]
fsubp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x12c]
fmul dword [esp + 0x10c]
fxch st(1)
fmul dword [esp + 0x104]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], ecx
fsubp st(1)
fchs
fstp dword [esp + 0x14]
fld dword [esp + 0x12c]
fmul dword [esp + 0x108]
fld dword [esp + 0x130]
fmul dword [esp + 0x104]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x94], eax
fsubp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x88]
fld dword [esp + 0x14]
fmul dword [esp + 0x8c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], ecx
fsubp st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x18]
fmul dword [esp + 0x84]
fld dword [esp + 0x10]
fmul dword [esp + 0x8c]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x9c], eax
fsubp st(1)
fchs
fstp dword [esp + 0x50]
fld dword [esp + 0x14]
fmul dword [esp + 0x84]
fld dword [esp + 0x10]
fmul dword [esp + 0x88]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xa0], ecx
fsubp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x10]
fcomp dword [0x5333ec]
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa4], eax
fnstsw ax
test ah, 0x40
je 0x4dfdf6
fld dword [esp + 0x14]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4dfdf6
fld dword [esp + 0x18]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4dfe4f
fld dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x90]
fld dword [esp + 0x94]
fmul st(1)
fstp dword [esp + 0x94]
fld dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0x98]
fstp st(0)
fld dword [esp + 0x4c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4dfe82
fld dword [esp + 0x50]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4dfe82
fld dword [esp + 0x54]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4dfedb
fld dword [esp + 0x54]
fld dword [esp + 0x50]
fld dword [esp + 0x4c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x9c]
fld dword [esp + 0xa0]
fmul st(1)
fstp dword [esp + 0xa0]
fld dword [esp + 0xa4]
fmul st(1)
fstp dword [esp + 0xa4]
fstp st(0)
mov ecx, 0xa
lea esi, [esp + 0x84]
lea edi, [esp + 0x19c]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x1a8]
fmul dword [ebp + 0x74]
fld dword [esp + 0x1b4]
fmul dword [ebp + 0x78]
faddp st(1)
fld dword [esp + 0x19c]
fmul dword [ebp + 0x70]
faddp st(1)
mov dword [esp + 0x1c0], 0
fstp dword [esp + 0x5c]
fld dword [esp + 0x1ac]
fmul dword [ebp + 0x74]
fld dword [esp + 0x1b8]
fmul dword [ebp + 0x78]
faddp st(1)
fld dword [esp + 0x1a0]
fmul dword [ebp + 0x70]
faddp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x1b0]
fmul dword [ebp + 0x74]
fld dword [esp + 0x1bc]
fmul dword [ebp + 0x78]
faddp st(1)
fld dword [esp + 0x1a4]
fmul dword [ebp + 0x70]
faddp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x1a8]
fmul dword [ebp + 0x80]
fld dword [esp + 0x1b4]
fmul dword [ebp + 0x84]
faddp st(1)
fld dword [esp + 0x19c]
fmul dword [ebp + 0x7c]
faddp st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0x1ac]
fmul dword [ebp + 0x80]
fld dword [esp + 0x1b8]
fmul dword [ebp + 0x84]
faddp st(1)
fld dword [esp + 0x1a0]
fmul dword [ebp + 0x7c]
faddp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x1b0]
fmul dword [ebp + 0x80]
fld dword [esp + 0x1bc]
fmul dword [ebp + 0x84]
faddp st(1)
fld dword [esp + 0x1a4]
fmul dword [ebp + 0x7c]
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x1a8]
fmul dword [ebp + 0x8c]
fld dword [esp + 0x1b4]
fmul dword [ebp + 0x90]
faddp st(1)
fld dword [esp + 0x19c]
fmul dword [ebp + 0x88]
faddp st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x1ac]
fmul dword [ebp + 0x8c]
fld dword [esp + 0x1b8]
fmul dword [ebp + 0x90]
faddp st(1)
fld dword [esp + 0x1a0]
fmul dword [ebp + 0x88]
mov eax, dword [ebp + 0x94]
mov ecx, 0xa
inc eax
lea esi, [esp + 0x5c]
faddp st(1)
lea edi, [esp + 0x174]
mov dword [esp + 0x80], eax
cmp eax, 0x3e8
fstp dword [esp + 0x78]
fld dword [esp + 0x1b0]
fmul dword [ebp + 0x8c]
fld dword [esp + 0x1bc]
fmul dword [ebp + 0x90]
faddp st(1)
fld dword [esp + 0x1a4]
fmul dword [ebp + 0x88]
faddp st(1)
fstp dword [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
jle 0x4e0367
fld dword [esp + 0x5c]
fcomp dword [0x5333ec]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x64]
fnstsw ax
mov dword [esp + 0xdc], ecx
test ah, 0x40
je 0x4e00fd
fld dword [esp + 0x60]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e00fd
fld dword [esp + 0x64]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4e0156
fld dword [esp + 0x64]
fld dword [esp + 0x60]
fld dword [esp + 0x5c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x5c]
fmul st(1)
fstp dword [esp + 0xd4]
fld dword [esp + 0xd8]
fmul st(1)
fstp dword [esp + 0xd8]
fld dword [esp + 0xdc]
fmul st(1)
fstp dword [esp + 0xdc]
fstp st(0)
fld dword [esp + 0x78]
fmul dword [esp + 0x64]
fld dword [esp + 0x7c]
fmul dword [esp + 0x60]
fsubp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x74]
fmul dword [esp + 0x64]
fld dword [esp + 0x7c]
fmul dword [esp + 0x5c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0xe0], eax
fsubp st(1)
fchs
fstp dword [esp + 0x2c]
fld dword [esp + 0x74]
fmul dword [esp + 0x60]
fld dword [esp + 0x78]
fmul dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xe4], ecx
fsubp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fmul dword [esp + 0xd8]
fld dword [esp + 0x2c]
fmul dword [esp + 0xdc]
mov eax, dword [esp + 0x30]
mov dword [esp + 0xe8], eax
fsubp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x30]
fmul dword [esp + 0xd4]
fld dword [esp + 0x28]
fmul dword [esp + 0xdc]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xec], ecx
fsubp st(1)
fchs
fstp dword [esp + 0x44]
fld dword [esp + 0x2c]
fmul dword [esp + 0xd4]
fld dword [esp + 0x28]
fmul dword [esp + 0xd8]
mov eax, dword [esp + 0x44]
mov dword [esp + 0xf0], eax
fsubp st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x28]
fcomp dword [0x5333ec]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xf4], ecx
fnstsw ax
test ah, 0x40
je 0x4e0265
fld dword [esp + 0x2c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e0265
fld dword [esp + 0x30]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4e02be
fld dword [esp + 0x28]
fld dword [esp + 0x2c]
fld dword [esp + 0x30]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0xe0]
fld dword [esp + 0xe4]
fmul st(1)
fstp dword [esp + 0xe4]
fld dword [esp + 0xe8]
fmul st(1)
fstp dword [esp + 0xe8]
fstp st(0)
fld dword [esp + 0x40]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e02f1
fld dword [esp + 0x44]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e02f1
fld dword [esp + 0x48]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4e034a
fld dword [esp + 0x48]
fld dword [esp + 0x44]
fld dword [esp + 0x40]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0xec]
fld dword [esp + 0xf0]
fmul st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0xf4]
fmul st(1)
fstp dword [esp + 0xf4]
fstp st(0)
mov ecx, 0xa
lea esi, [esp + 0xd4]
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x80], 0
fld dword [esp + 0x174]
mov eax, dword [esp + 0x174]
mov ecx, dword [esp + 0x178]
fcomp dword [0x5333ec]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], ecx
fnstsw ax
test ah, 0x40
je 0x4e03cd
fld dword [esp + 0x178]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e03cd
fld dword [esp + 0x17c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4e0432
fld dword [esp + 0x17c]
fld dword [esp + 0x178]
fld dword [esp + 0x174]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x174]
fmul st(1)
fstp dword [esp + 0xac]
fld dword [esp + 0xb0]
fmul st(1)
fstp dword [esp + 0xb0]
fld dword [esp + 0xb4]
fmul st(1)
fstp dword [esp + 0xb4]
fstp st(0)
fld dword [esp + 0x17c]
fmul dword [esp + 0x190]
fld dword [esp + 0x178]
fmul dword [esp + 0x194]
fsubp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x18c]
fmul dword [esp + 0x17c]
fld dword [esp + 0x174]
fmul dword [esp + 0x194]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xb8], ecx
fsubp st(1)
fchs
fstp dword [esp + 0x20]
fld dword [esp + 0x18c]
fmul dword [esp + 0x178]
fld dword [esp + 0x174]
fmul dword [esp + 0x190]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xbc], eax
fsubp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul dword [esp + 0xb0]
fld dword [esp + 0x20]
fmul dword [esp + 0xb4]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc0], ecx
fsubp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
fmul dword [esp + 0xac]
fld dword [esp + 0x1c]
fmul dword [esp + 0xb4]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc4], eax
fsubp st(1)
fchs
fstp dword [esp + 0x38]
fld dword [esp + 0x20]
fmul dword [esp + 0xac]
fld dword [esp + 0x1c]
fmul dword [esp + 0xb0]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc8], ecx
fsubp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fcomp dword [0x5333ec]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xcc], eax
fnstsw ax
test ah, 0x40
je 0x4e0565
fld dword [esp + 0x20]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e0565
fld dword [esp + 0x24]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4e05be
fld dword [esp + 0x1c]
fld dword [esp + 0x20]
fld dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0xb8]
fld dword [esp + 0xbc]
fmul st(1)
fstp dword [esp + 0xbc]
fld dword [esp + 0xc0]
fmul st(1)
fstp dword [esp + 0xc0]
fstp st(0)
fld dword [esp + 0x34]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e05f1
fld dword [esp + 0x38]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e05f1
fld dword [esp + 0x3c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
jne 0x4e064a
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
fld dword [esp + 0x34]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr qword [0x5333f8]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0xc4]
fld dword [esp + 0xc8]
fmul st(1)
fstp dword [esp + 0xc8]
fld dword [esp + 0xcc]
fmul st(1)
fstp dword [esp + 0xcc]
fstp st(0)
mov ecx, 0xa
lea esi, [esp + 0xac]
lea edi, [esp + 0x174]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0xa4433c]
mov dword [esp + 0x198], eax
cmp ecx, eax
mov dword [esp + 0xfc], eax
jle 0x4e06e5
mov edi, 0xb97e00
test ebx, ebx
jne 0x4e06ff
mov esi, edi
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4e06aa
test cl, cl
je 0x4e06a6
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4e06aa
add eax, 2
add esi, 2
test cl, cl
jne 0x4e0686
xor eax, eax
jmp 0x4e06af
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4e06be
mov ebx, edi
mov dword [esp + 0x100], ebx
jmp 0x4e06c5
mov ebx, dword [esp + 0x100]
mov eax, dword [esp + 0xfc]
mov ecx, dword [0xa4433c]
inc eax
add edi, 0x28
cmp eax, ecx
mov dword [esp + 0xfc], eax
jl 0x4e067e
test ebx, ebx
jne 0x4e06ff
mov ecx, dword [ebp + 0x6c]
add ecx, 0x14
push ecx
push edx
push str.Magic_object_type___s__not_defined__Created_from_model___s__
call fcn.004af810
add esp, 0xc
jmp 0x4e07e1
mov edx, dword [ebx + 0x24]
mov eax, dword [ebp + 0x68]
mov ecx, dword [esp + 0x27c]
lea esi, [ebx + 0x10]
push esi
mov dword [esp + 0x1cc], edx
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], eax
mov dword [esp + 0x1c8], ecx
call fcn.004cec10
add esp, 4
test eax, eax
jne 0x4e0748
push esi
push str.Magic_object_model___s__not_found
call fcn.004af810
jmp 0x4e07de
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
lea edx, [esp + 0x13c]
push edx
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x98]
test eax, eax
je 0x4e0771
mov ax, word [0x548694]
mov ecx, dword [ebp + 0x148]
push eax
jmp 0x4e077c
mov ax, word [ebx + 0x20]
mov ecx, dword [ebp + 0xe8]
push eax
push ecx
call fcn.004012a0
mov edx, dword [ebx + 0x24]
mov ecx, dword [esp + 0x288]
mov edi, eax
mov eax, dword [ebp + 0x68]
add esp, 0xc
mov dword [esp + 0x270], edx
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x26c], ecx
call fcn.004c5700
and eax, 0xff
lea edx, [eax + eax*2]
xor eax, eax
mov ax, word [edi + 0x1c]
shl edx, 7
add edx, eax
mov eax, dword [edx*4 + 0xa96ae0]
test eax, eax
je 0x4e07e1
lea ecx, [esp + 0x1e4]
push ecx
push edi
call eax
add esp, 8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x138]
inc eax
cmp eax, ecx
mov dword [esp + 0x58], eax
jl 0x4dfa8e
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x264
ret