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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61e998
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
push eax
call fcn.005b465e
mov ecx, dword [esi + 0x24]
xor ebp, ebp
add esp, 4
cmp ecx, ebp
mov dword [esi + 0x60], ebp
je 0x4d4aaf
mov edx, dword [esi + 0x28]
cmp edx, ebp
je 0x4d4aaf
mov eax, dword [esp + 0x3c]
fld qword [esp + 0x44]
fldz
push ebx
mov ebx, dword [esp + 0x3c]
and ebx, 7
add ecx, ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x6c]
sub ecx, ebx
push edi
mov edi, dword [esi + 0x4c]
and eax, 7
mov dword [esi + 0x74], ecx
mov ecx, dword [esi + 0x70]
add edi, 7
sub ecx, eax
and edi, 0xfffffff8
add edx, eax
mov dword [esp + 0x44], eax
mov dword [esi + 0x78], ecx
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 0x40]
cmp eax, ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], edx
je 0x4d463a
mov ecx, dword [esi + 0x44]
sub ecx, eax
sar ecx, 4
jne 0x4d4649
cmp dword [esp + 0x48], ebp
jne 0x4d4649
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4d46ac
fcomp st(1)
xor ecx, ecx
fnstsw ax
test ah, 5
jp 0x4d4672
fmul qword [0x647148]
fmul qword [0x647890]
fadd qword [0x632bc8]
call fcn.005dc8a0
mov ecx, eax
or ecx, 1
jmp 0x4d4674
fstp st(0)
cmp dword [esp + 0x48], ebp
je 0x4d467d
add ecx, 8
mov edx, dword [esp + 0x18]
lea eax, [ecx + 7]
and eax, 0xfffffff8
lea ecx, [edi + eax]
add dword [esp + 0x44], ecx
lea ebp, [ecx + ecx]
add dword [esp + 0x10], ebp
add ebx, ecx
lea ecx, [edi + eax]
sub dword [esi + 0x74], ecx
add edi, eax
sub dword [esi + 0x78], edi
add edx, ebp
mov dword [esp + 0x40], ebx
xor ebp, ebp
jmp 0x4d46b0
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x10]
lea ecx, [eax + 7]
lea eax, [edx + 7]
sar eax, 3
add eax, 1
sar ecx, 3
add ecx, 1
mov dword [esi + 0x68], eax
imul eax, ecx
add eax, eax
push eax
mov dword [esi + 0x64], ecx
call fcn.005b4663
mov ecx, dword [esi + 0x68]
imul ecx, dword [esi + 0x64]
add ecx, ecx
push ecx
push ebp
push eax
mov dword [esi + 0x60], eax
call fcn.005d9e90
lea edx, [esi + 0x2c]
lea eax, [esi + 0x3c]
add esp, 0x10
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + eax*4 + 0x24]
mov ebp, dword [ebx + 4]
cmp ebp, dword [ebx + 8]
mov dword [esp + 0x14], ebx
jbe 0x4d471d
call fcn.005dd003
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
mov dword [esp + 0x20], edi
jbe 0x4d4730
call fcn.005dd003
mov edi, edi
cmp ebx, ebx
je 0x4d4739
call fcn.005dd003
cmp ebp, edi
je 0x4d481d
cmp ebp, dword [ebx + 8]
jb 0x4d474b
call fcn.005dd003
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov cl, 0x20
call fcn.005e1250
cmp ebp, dword [ebx + 8]
mov ecx, dword [esp + 0x44]
lea edi, [eax + ecx - 0x40000000]
jb 0x4d476d
call fcn.005dd003
mov ecx, dword [esp + 0x14]
cmp ebp, dword [ecx + 8]
mov edx, dword [ebp]
mov eax, dword [esp + 0x40]
lea ebx, [edx + eax - 0x40000000]
jb 0x4d4789
call fcn.005dd003
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x40]
lea edx, [edx + eax - 0x40000000]
cmp edx, ebx
mov dword [esp + 0x18], edx
jle 0x4d47ff
mov eax, dword [esp + 0x10]
sar edi, 3
imul edi, dword [esi + 0x64]
mov ecx, ebx
sar ecx, 3
add edi, ecx
add edx, 0xffffffff
sar edx, 3
lea eax, [eax + edi*2]
add eax, dword [esi + 0x60]
cmp ecx, edx
mov dword [esp + 0x1c], edx
je 0x4d47f7
mov dl, cl
add dl, dl
add dl, dl
add dl, dl
sub dl, bl
mov ebx, dword [esp + 0x1c]
add dl, 8
add byte [eax], dl
add ecx, 1
add eax, 2
cmp ecx, ebx
jge 0x4d47f1
mov edx, ebx
sub edx, ecx
add byte [eax], 8
add eax, 2
sub edx, 1
jne 0x4d47e6
add bl, bl
add bl, bl
add bl, bl
mov cl, byte [esp + 0x18]
sub cl, bl
add byte [eax], cl
mov eax, dword [esp + 0x14]
cmp ebp, dword [eax + 8]
jb 0x4d480d
call fcn.005dd003
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add ebp, 0x10
jmp 0x4d4730
sub dword [esp + 0x10], 1
jns 0x4d4704
fldz
fld qword [esp + 0x4c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4d491c
sub esp, 8
lea ecx, [esp + 0x2c]
fstp qword [esp]
call fcn.004d21f0
mov ecx, dword [esi + 0x64]
mov edx, dword [esp + 0x28]
cmp ecx, edx
mov dword [esp + 0x38], 0
jl 0x4d4905
mov eax, dword [esi + 0x68]
cmp eax, edx
jl 0x4d4905
lea ebp, [ecx + ecx]
imul eax, ebp
push eax
call fcn.005b4663
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4d48a7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005b465e
add esp, 4
pop edi
pop ebx
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
lea ecx, [esi + 0x3c]
call fcn.004d3a50
mov edi, dword [esi + 0x60]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
neg al
push edx
mov edx, dword [esi + 0x68]
sbb eax, eax
add eax, 1
add edi, eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x64]
push ecx
push ebp
push edx
push eax
push ebx
push edi
call fcn.004d3a80
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x64]
push eax
push ebp
push ecx
push edx
push edi
push ebx
call fcn.004d3bb0
add esp, 0x40
push ebx
call fcn.005b465e
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.005b465e
add esp, 4
jmp 0x4d491e
fstp st(0)
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], 0
jle 0x4d4a98
mov ecx, dword [esi + 0x64]
cmp ecx, 3
jl 0x4d4a83
mov eax, dword [esi + 0x68]
cmp eax, 3
jl 0x4d4a83
lea edi, [ecx + ecx]
imul eax, edi
push eax
call fcn.005b4663
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x4d4890
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x60]
imul ecx, edi
push ecx
push edx
push ebx
call fcn.005dbeb0
mov ecx, dword [esi + 0x40]
add esp, 0xc
test ecx, ecx
jne 0x4d4985
xor eax, eax
jmp 0x4d498d
mov eax, dword [esi + 0x44]
sub eax, ecx
sar eax, 4
xor edx, edx
test eax, eax
mov eax, dword [esi + 0x68]
setne dl
sub eax, 1
cmp eax, 1
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], edx
jle 0x4d4a7a
lea ecx, [edx + ebx]
mov eax, 2
lea ecx, [ecx + edi + 2]
sub eax, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esi + 0x60]
add ebx, edx
lea ebx, [ebx + ebp + 2]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esi + 0x64]
mov ebp, 1
sub ebx, ebp
cmp ebx, ebp
jle 0x4d4a57
add eax, ecx
movzx ebx, byte [eax + edi]
movzx edx, byte [edi + eax - 4]
add edx, ebx
movzx ebx, byte [ecx + edi]
add edx, ebx
movzx ebx, byte [ecx]
lea edx, [edx + ebx*2]
movzx ebx, byte [eax - 2]
add edx, ebx
movzx ebx, byte [ecx + edi + 2]
lea ebx, [ebx + edx*2]
movzx edx, byte [ecx + edi - 2]
add ebx, edx
movzx edx, byte [eax - 4]
add ebx, edx
movzx edx, byte [eax]
add ebx, edx
mov edx, dword [esp + 0x4c]
sar ebx, 4
mov byte [edx], bl
add edx, 2
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x64]
add ebp, 1
sub edx, 1
add ecx, 2
add eax, 2
cmp ebp, edx
jl 0x4d49f1
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esi + 0x68]
add dword [esp + 0x40], 1
add dword [esp + 0x44], edi
add ecx, edi
sub ebx, 1
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x18], ecx
jl 0x4d49d0
mov ebx, dword [esp + 0x10]
push ebx
call fcn.005b465e
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
jl 0x4d4931
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x68], ebp
mov dword [esi + 0x64], ebp
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14