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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov al, byte [ebp + 0x1c]
mov cl, byte [ebp + 0x20]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
test al, al
mov byte [ebx + 0x5b4], al
mov byte [ebx + 0x5b5], cl
push edi
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0x59c], edx
je 0x4e4575
mov dword [ebx + 0x59c], 1
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.004b32b0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
fstp qword [esp + 0x20]
fld dword [eax]
fmul qword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [edi]
sub esp, 8
fstp qword [esp + 8]
fld dword [ecx]
fmul qword [esp + 0x28]
mov ecx, dword [esi + 4]
fstp qword [esp]
push edx
mov edx, dword [esi]
push eax
push ecx
lea eax, [esp + 0xe4]
push edx
push eax
call fcn.00518130
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 0x1c
mov eax, dword [edi + 0xc]
fld dword [ecx + 0xc]
fmul qword [esp + 0x20]
mov ecx, dword [edi + 8]
sub esp, 8
fstp qword [esp + 8]
fld dword [edx + 0xc]
fmul qword [esp + 0x28]
mov edx, dword [esi + 0xc]
fstp qword [esp]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
lea ecx, [esp + 0x104]
push eax
push ecx
call fcn.00518130
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
add esp, 0x1c
mov ecx, dword [edi + 0x14]
fld dword [edx + 0x18]
fmul qword [esp + 0x20]
mov edx, dword [edi + 0x10]
sub esp, 8
fstp qword [esp + 8]
fld dword [eax + 0x18]
fmul qword [esp + 0x28]
mov eax, dword [esi + 0x14]
fstp qword [esp]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
lea edx, [esp + 0x124]
push ecx
push edx
call fcn.00518130
lea eax, [esp + 0xe8]
lea ecx, [esp + 0xe4]
push eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0xe4]
push ecx
push edx
push eax
call fcn.004b3c50
lea ecx, [esp + 0xc8]
lea edx, [esp + 0xc4]
push ecx
push edx
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0xc8]
push eax
push ecx
call fcn.004b3c50
fld qword [esi]
fadd qword [edi]
mov eax, dword [ebx + 0x59c]
add esp, 0x44
mov dword [esp + 0x28], eax
fmul qword [0x5335c0]
fstp qword [esp + 0x98]
fld qword [edi + 8]
fadd qword [esi + 8]
fmul qword [0x5335c0]
fstp qword [esp + 0xa0]
fld qword [edi + 0x10]
fadd qword [esi + 0x10]
xor edi, edi
test eax, eax
fmul qword [0x5335c0]
mov dword [ebx + 0xf8], edi
mov dword [esp + 0x10], edi
fstp qword [esp + 0xa8]
fild dword [esp + 0x28]
fdivr dword [0x5333e0]
fstp dword [esp + 0x44]
jl 0x4e4bcb
fild dword [esp + 0x10]
mov al, byte [ebp + 0x1c]
test al, al
fmul dword [esp + 0x44]
fst dword [esp + 0x54]
je 0x4e4897
mov ecx, dword [ebp + 0x10]
lea edx, [edi + edi*2]
fld qword [ecx]
fsub qword [esi]
fxch st(1)
lea eax, [ebx + edx*4]
lea edx, [edi + edi*2 + 0x42]
fmulp st(1)
fadd qword [esi]
fld qword [ecx + 8]
fsub qword [esi + 8]
fmul dword [esp + 0x54]
fadd qword [esi + 8]
fstp qword [esp + 0x60]
fld qword [ecx + 0x10]
fsub qword [esi + 0x10]
fmul dword [esp + 0x54]
fadd qword [esi + 0x10]
fstp qword [esp + 0x68]
fsub qword [esp + 0x98]
fstp dword [eax + 0x104]
fld qword [esp + 0x60]
fsub qword [esp + 0xa0]
fstp dword [ebx + edx*4]
fld qword [esp + 0x68]
fsub qword [esp + 0xa8]
fstp dword [eax + 0x10c]
lea eax, [edi + edi*4]
lea eax, [ebx + eax*8]
lea edx, [eax + 0x200]
mov dword [esp + 0x28], edx
mov dword [edx], 0
lea edx, [edi + edi*4 + 0x41]
mov dword [eax + 0x204], 0
mov dword [ebx + edx*8], 0
xor edx, edx
mov dword [eax + 0x20c], edx
mov dword [eax + 0x210], edx
mov dword [eax + 0x214], edx
mov dword [eax + 0x218], edx
mov dword [eax + 0x21c], edx
mov dword [eax + 0x220], edx
mov dword [eax + 0x224], edx
fld qword [ecx]
fsub qword [esi]
fst dword [esp + 0x80]
fld qword [ecx + 8]
fsub qword [esi + 8]
fstp dword [esp + 0x84]
fld qword [ecx + 0x10]
fsub qword [esi + 0x10]
fstp dword [esp + 0x88]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e481e
fld dword [esp + 0x84]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e481e
fld dword [esp + 0x88]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e481e
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], edx
jmp 0x4e483e
lea eax, [esp + 0xb8]
lea ecx, [esp + 0xb4]
push eax
lea edx, [esp + 0x84]
push ecx
push edx
call fcn.004b2d00
add esp, 0xc
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.004b3be0
add esp, 8
test edi, edi
jne 0x4e4bb8
fld dword [esp + 0x88]
fld dword [esp + 0x84]
fld dword [esp + 0x80]
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)
fmul dword [esp + 0x44]
fst dword [ebx + 0x548]
jmp 0x4e4bac
fld dword [esp + 0xbc]
fst dword [esp + 0x40]
fld dword [esp + 0x8c]
fst dword [esp + 0x28]
fld dword [esp + 0x8c]
fsub dword [esp + 0xbc]
fcomp dword [0x533400]
fnstsw ax
test ah, 0x41
jne 0x4e48f0
fxch st(1)
fadd dword [0x5334a8]
fxch st(1)
fld dword [esp + 0x8c]
fsub st(2)
fcomp dword [0x533400]
fnstsw ax
test ah, 0x41
je 0x4e48c8
fxch st(1)
fst dword [esp + 0x40]
fxch st(1)
fld dword [esp + 0x8c]
fsub st(2)
fcomp dword [0x5338f0]
fnstsw ax
test ah, 1
je 0x4e49d7
fadd dword [0x5334a8]
fld st(0)
fsub st(2)
fcomp dword [0x5338f0]
fnstsw ax
test ah, 1
jne 0x4e490a
fstp dword [esp + 0x28]
fstp st(0)
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [edi + edi*2]
push ecx
lea eax, [ebx + edx*4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xcc]
push edx
push eax
call fcn.00518190
mov ecx, dword [esp + 0x30]
lea edx, [edi + edi*2 + 0x42]
fsub qword [esp + 0xa4]
fstp dword [ecx + 0x104]
mov ecx, dword [esp + 0x28]
lea eax, [ebx + edx*4]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
push ecx
lea eax, [esp + 0xf8]
push edx
push eax
call fcn.00518190
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
fsub qword [esp + 0xb8]
fstp dword [ecx]
mov eax, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x124]
push eax
push ecx
call fcn.00518190
fsub qword [esp + 0xcc]
mov edx, dword [esp + 0x48]
add esp, 0x24
test edi, edi
fstp dword [edx + 0x10c]
jne 0x4e49de
mov esi, dword [ebp + 0x14]
lea edi, [ebx + 0x200]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 0xc]
jmp 0x4e4bb8
fstp st(0)
jmp 0x4e4925
cmp edi, dword [ebx + 0x59c]
jne 0x4e4a6a
mov esi, dword [ebp + 0x18]
lea eax, [edi + edi*4]
mov ecx, 0xa
lea edi, [ebx + eax*8 + 0x200]
mov eax, dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
fld dword [eax + 0x104]
fsub dword [eax + 0xf8]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, ecx
fld dword [esi]
lea edx, [ecx + ecx*2 + 0x3f]
mov esi, dword [ebp + 0xc]
fsub dword [ebx + edx*4]
fld dword [eax + 0x10c]
fsub dword [eax + 0x100]
fstp qword [esp + 0x28]
fstp qword [esp + 0x18]
fld st(0)
fmulp st(1)
fld qword [esp + 0x18]
fmul qword [esp + 0x18]
faddp st(1)
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
faddp st(1)
fsqrt
fst dword [ebx + ecx*4 + 0x544]
fadd dword [ebx + 0xf8]
fstp dword [ebx + 0xf8]
jmp 0x4e4bb8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0xcc]
push ecx
push edx
call fcn.005181c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
fstp dword [esp + 0x40]
push eax
lea edx, [esp + 0xf8]
push ecx
push edx
call fcn.005181c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x50]
push eax
lea edx, [esp + 0x124]
push ecx
push edx
call fcn.005181c0
fstp dword [esp + 0x60]
fld dword [esp + 0x58]
fcomp dword [0x5333ec]
add esp, 0x24
fnstsw ax
test ah, 0x40
je 0x4e4b03
fld dword [esp + 0x38]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e4b03
fld dword [esp + 0x3c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e4b03
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
jmp 0x4e4b1a
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004b2d00
add esp, 0xc
fld dword [esp + 0x28]
fsub dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
lea eax, [edi + edi*4]
fmul dword [esp + 0x58]
push ecx
lea ecx, [ebx + eax*8 + 0x200]
fadd dword [esp + 0x48]
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
push edx
push ecx
call fcn.004b38e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
lea edx, [edi + edi*2 + 0x3f]
add esp, 0x10
fld dword [eax + 0x104]
fsub dword [eax + 0xf8]
fstp dword [esp + 0x34]
fld dword [ecx]
fsub dword [ebx + edx*4]
fstp dword [esp + 0x38]
fld dword [eax + 0x10c]
fsub dword [eax + 0x100]
fst 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)
fst dword [ebx + edi*4 + 0x544]
fadd dword [ebx + 0xf8]
fstp dword [ebx + 0xf8]
mov eax, dword [ebx + 0x59c]
inc edi
cmp edi, eax
mov dword [esp + 0x10], edi
jle 0x4e46e1
mov edx, dword [ebx + 0x59c]
mov eax, dword [ebp + 0x2c]
push eax
mov dword [ebx + edx*4 + 0x548], 0
call fcn.004cec10
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [ebx + 0x6c], eax
je 0x4e51b7
mov dword [ebx + 0xfc], ecx
mov dword [ebx + 0x100], ecx
cmp word [eax + 0x3c], cx
mov dword [esp + 0x24], ecx
jle 0x4e4c8c
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x4e4c70
mov edx, dword [ecx + 0x24]
xor edi, edi
cmp dword [edx + 0xc], edi
mov ecx, dword [edx + 0x10]
jle 0x4e4c70
fld dword [ecx]
fcomp dword [ebx + 0xfc]
fnstsw ax
test ah, 1
je 0x4e4c4a
mov eax, dword [ecx]
mov dword [ebx + 0xfc], eax
fld dword [ecx]
fcomp dword [ebx + 0x100]
fnstsw ax
test ah, 0x41
jne 0x4e4c61
mov eax, dword [ecx]
mov dword [ebx + 0x100], eax
mov eax, dword [edx + 0xc]
inc edi
add ecx, 0x20
cmp edi, eax
jl 0x4e4c33
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
add edx, 4
inc ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
movsx edx, word [eax + 0x3c]
cmp ecx, edx
jl 0x4e4c13
mov al, byte [ebx + 0x5b4]
test al, al
je 0x4e4fb8
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], 0x3f800000
push edi
push esi
call fcn.004b3360
add esp, 8
test al, al
jne 0x4e4f75
fld qword [edi]
fsub qword [esi]
fst dword [esp + 0x34]
fld qword [edi + 8]
fsub qword [esi + 8]
fstp dword [esp + 0x38]
fld qword [edi + 0x10]
fsub qword [esi + 0x10]
fstp dword [esp + 0x3c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e4d1a
fld dword [esp + 0x38]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e4d1a
fld dword [esp + 0x3c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4e4d1a
mov dword [esp + 0x34], 0x3f800000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
fld dword [ebx + 0x100]
fsub dword [ebx + 0xfc]
mov edx, dword [ebx + 0x218]
mov eax, dword [ebx + 0x200]
mov ecx, dword [ebx + 0x20c]
mov dword [esp + 0x60], edx
fdivr dword [0x5333e0]
mov edx, dword [ebx + 0x21c]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x204]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0x210]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0x220]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x208]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebx + 0x214]
mov dword [esp + 0x78], edx
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x224]
lea edx, [ebx + 0x70]
mov dword [esp + 0x74], ecx
mov ecx, 0xa
lea esi, [esp + 0x58]
mov edi, edx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], eax
mov al, byte [ebx + 0x5b5]
test al, al
fld st(0)
fmul dword [edx]
fst dword [esp + 0x28]
fstp dword [edx]
fld st(0)
fmul dword [ebx + 0x74]
fst dword [esp + 0x44]
fstp dword [ebx + 0x74]
fmul dword [ebx + 0x78]
fst dword [ebx + 0x78]
je 0x4e4df4
fld dword [esp + 0x28]
fchs
fstp dword [edx]
fld dword [esp + 0x44]
fchs
fstp dword [ebx + 0x74]
fchs
fstp dword [ebx + 0x78]
jmp 0x4e4df6
fstp st(0)
mov ecx, dword [edx]
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x88]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x8c]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x90]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x78], ecx
mov ecx, 0xa
lea esi, [esp + 0x58]
mov edi, edx
mov dword [esp + 0x7c], eax
rep movsd dword es:[edi], dword [esi]
fld dword [ebx + 0x78]
fld dword [ebx + 0x74]
fld dword [edx]
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)
fld dword [ebx + 0x84]
fld dword [ebx + 0x80]
fld dword [ebx + 0x7c]
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)
fstp dword [esp + 0x4c]
fld dword [ebx + 0x90]
fld dword [ebx + 0x8c]
fld dword [ebx + 0x88]
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)
fstp dword [esp + 0x50]
fst dword [esp + 0x10]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 1
je 0x4e4eea
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x10]
fcomp dword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x4e4f01
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov ecx, dword [edx]
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x8c]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x90]
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 0x80]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 0x84]
lea eax, [ebx + 0x520]
mov dword [esp + 0x7c], ecx
mov ecx, 0xa
lea esi, [esp + 0x58]
mov edi, eax
mov dword [esp + 0x74], edx
push eax
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004b4390
add esp, 8
mov ecx, dword [ebx + 0x6c]
fld dword [0x5333ec]
movsx eax, word [ecx + 0x3c]
test eax, eax
jle 0x4e4fa5
mov esi, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edx, dword [eax + 0xc]
fcom dword [edx + 0x78]
fnstsw ax
test ah, 1
je 0x4e4f9f
fstp st(0)
fld dword [edx + 0x78]
add ecx, 4
dec esi
jne 0x4e4f88
fmul dword [esp + 0x10]
fmul dword [0x534b34]
fstp dword [esp + 0x10]
jmp 0x4e503c
mov dword [esp + 0x10], 0
xor esi, esi
lea ecx, [esp + 0x28]
push ecx
push 0
push 1
push esi
push 0
push ebx
call fcn.0049a050
mov edx, dword [esp + 0x40]
add esp, 0x18
test edx, edx
jle 0x4e501d
lea ecx, [eax + 4]
fld dword [ecx + 4]
fld dword [ecx]
fld dword [ecx - 4]
fld st(0)
fmul st(1)
fld st(3)
fmul st(4)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4e5015
fstp dword [esp + 0x10]
jmp 0x4e5017
fstp st(0)
add ecx, 0xc
dec edx
jne 0x4e4fe2
fld dword [esp + 0x10]
fcomp dword [0x5333e0]
fnstsw ax
test ah, 0x41
je 0x4e5036
mov dword [esp + 0x10], 0x3f800000
inc esi
cmp esi, 2
jl 0x4e4fc2
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0xf0]
lea eax, [esp + 0x98]
push edx
push eax
push ebx
push ecx
call fcn.004c6940
mov edx, dword [esp + 0x20]
push ebx
mov dword [ebx + 0xf4], edx
call fcn.0049a010
mov eax, dword [ebx + 0x5b0]
mov ecx, dword [ebx + 0x6c]
add esp, 0x14
cmp eax, ecx
jne 0x4e507d
mov al, byte [ebp + 0x1c]
test al, al
je 0x4e50ae
lea esi, [ebx + 0x5a0]
mov edi, 2
mov eax, dword [esi]
test eax, eax
je 0x4e509d
push eax
call fcn.004b0d10
add esp, 4
mov dword [esi], 0
add esi, 8
dec edi
jne 0x4e5088
mov al, byte [ebp + 0x1c]
test al, al
jne 0x4e51ae
mov eax, dword [ebx + 0x6c]
xor ecx, ecx
cmp eax, ecx
je 0x4e51ae
mov edx, dword [ebx + 0xa4]
lea edi, [ebx + 0x5a0]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], edi
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x2c]
add eax, ecx
mov dword [0xa5e3f8], eax
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4e518e
mov ecx, dword [esp + 0x14]
push 0
push 0
push 1
push ecx
push edx
push ebx
call fcn.0049a050
mov dword [0xa5e3ec], eax
mov eax, dword [edi]
add esp, 0x18
test eax, eax
jne 0x4e5137
mov edx, dword [0xa5e3f8]
push 4
mov eax, dword [edx + 0xc]
mov dword [edi + 4], eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.004b0c60
add esp, 8
mov dword [edi], eax
mov eax, dword [edi + 4]
mov edx, dword [0xa5e3f8]
mov edi, dword [edi]
mov esi, dword [edx + 0x1c]
lea ecx, [eax + eax*2]
shl ecx, 3
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x40]
push esi
push ebx
mov dword [0xa5e3f0], esi
call fcn.004e1440
mov ecx, dword [esi]
add esp, 8
mov dword [0xa5e374], ecx
mov dword [0xa5e400], 0
call fcn.004e51c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov edi, esi
mov esi, dword [esp + 0x14]
add ecx, 0x20
inc esi
add edi, 8
cmp ecx, 0x40
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], ecx
jl 0x4e50d7
mov edx, dword [ebx + 0x6c]
mov dword [ebx + 0x5b0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret